Ramanujam Muralidharan wrote:

> hi , 
>   The apache-tomcat server that is present in our clients place is very

 > unstable and goes down very often inspite of having 1 gb of RAM . We
 > are using postgres as the backend . does Postgres ( single threaded db
 > ) have an effect on apache-tomcat . will the perdormance improve if i
 > switch to a multithreaded db ? or do i need to change the config
 > files.


First of all a hardware scarcity would cause the system to become slow 
rather than causing segfaults. Secondly your hardware requirement 
depends on a lot of factors.

Generally it is not a good idea to keep a webserver and a database 
server on the same machine.

Things to check for would be :
1. How many file handles are open at any given point of time ?
2. Are you connecting using TCP/IP or unix sockets to your database 
server. Unix sockets are more reliable that TCP/IP . Pg anyway defaults 
to unix sockets.
3. Are you running out of RAM / CPU ? I have seen high load averages 
even on a dual 700 with 1GB RAM.
4. Are you running more number of webserver child processes than 
database server child processes. The extra ones wont be able to connect 
to the database and your user code might be trying to do goofy stuff.
5. Are you using the latest versions of apache-tomcat and postgresql ??
6. Last but not the least - have you asked the apache-tomcat mailling 
list ???



Mithun


_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to