Re performance tuning-- PostgreSQL is configured out of the box to start
on just about anything. It is not configured for performance. If you
want decent performance with many concurrent connections, try setting
the shared_buffers to 1000 and make sure that Postgresql will start.
That is a good place to start.
Apache2 comes with a benchmarking tool called ab that I have found
useful. I am not familiar with others.