Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2006

Tip: Looking for answers? Try searching our database.

Problems with Java processes in my website

Thread view: 
Sako - 26 Sep 2006 08:36 GMT
Hi gents I have problems with my web site, my webserver is a
redhat enterprise, I use tomcat+apache to server my website.
   Monday's morning (usually) when everyone loggs in and doesn't
disconnect as they should my httpd and java processes rise up a lot,
but when the httpd processes get over 95 and the java ones get over 145
(more or less) then my server doesn't recover and the processes keep
rising, so the only thing I found to solve this is to restart apache
and tomcat.

    |-httpd---99*[httpd]
    |-java---java---153*[java]

     Is there any way to prevent this to happen? is there any script
that could be counfigured to automatically restart? Is there any way to
automatically free the sesions?

    I'm a newbie in webservers, so I'll try to ask any questions the
best I can.

    Thanks in advance and regards
Ian Wilson - 26 Sep 2006 11:34 GMT
>      Hi gents I have problems with my web site, my webserver is a
> redhat enterprise, I use tomcat+apache to server my website.
>     Monday's morning (usually) when everyone loggs in and doesn't
> disconnect as they should my httpd and java processes rise up a lot,

I'd try to change the application so that it handles the case when
user's disconnect improperly.

> but when the httpd processes get over 95 and the java ones get over 145
> (more or less) then my server doesn't recover and the processes keep
[quoted text clipped - 7 lines]
> that could be counfigured to automatically restart? Is there any way to
> automatically free the sesions?

You could run a cron script that runs `apachectl graceful` or whatever
apache+tomcat needs to do a graceful restart without breaking current
connections/transactions.

I'd not do this, it is treating the symptoms not the disease.

>      I'm a newbie in webservers, so I'll try to ask any questions the
> best I can.
>
>      Thanks in advance and regards

This doesn't seem to be a Java programming question. Followups set.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.