You can hardly get any share by solo mining included with wallet client, by the time with the network hashrates so large.
Go get a miner program and join a pool.
If you still want to do solo mining, I suggest you the number of threads equal to the core numbers, which is to say, 4 * 512 MB as you example.