In my current setup (debian squeeze x64, 6 cpus) neither java nor apache seem to utilitze the full potential of the server. The munin monitoring shows cpu usage never exceeds the 200% mark. We ran several stress tests which raised the server load up to 80, but the cpu usage always remained low. Any ideas?
There's a heap of stuff in there, everything from how to structure code to stuff like numactl for controlling processor affinity.