[opencms-dev] random crash of tomcat

Ben Rometsch ben at solidstategroup.com
Mon Aug 25 17:46:02 CEST 2003


Simply, tomcat should not crash. If it is crashing it will be down to
something other than the JVM you are using. It sounds like there might be a
library incompatiablity on the box to me. 

The logs:

11:50:33 AM org.apache.jk.common.ChannelSocket processConnection
INFO: server has been restarted or reset this connection Aug 25, 2003 

Are normal if running apache + tomcat + mod_jk and can be ignored AFAIK. 

What sort of time interval is there before the crash? Does the system crash
irrespective of load? Are the database connections being returned to the
database? Sometimes if you are running a large number of java threads (such
that the thread limit is reached) the VM can stall until a process thread is
released back into the pool - this could be occuring somewhere between
apache and tomcat or between tomcat and mysql...

Just some thoughts really. Sorry I cant be any more specific. 

Just to reiterate though, we have had tomcat running for months on end
without a problem...

-----Original Message-----
From: opencms-dev-admin at opencms.org [mailto:opencms-dev-admin at opencms.org]
On Behalf Of Fabian Lienert
Sent: 26 August 2003 01:12
To: opencms-dev at opencms.org
Subject: Re: [opencms-dev] random crash of tomcat

hi stephan,

> Hi Fabian,
> 
> first of all in my opinion the blackdown sdk is the most stable but 
> also slowest for linux. Give it a try.

ok. i gave it a try ;-) started tomcat standalone with blackdown debian
packet j2sdk1.4 
          1.4.0.99beta-1. after a few requests tomcat hanged with open
process.
so ibm java is still the most stable configuration.

> Some questions: 
> Does it also crash with tomcat in standalone mode without apache?

tomcat with blackdowns j2sdk1.4 1.4.0.99beta-1 debian packet does crash
without apache.
another test was with j2sdk-1.4.1-01-linux-i586-gcc2.95.bin i ensured that
blackdown java is compiled for debian stable that means for gcc 2.95.4. with
this configuration tomcat crashes too after a few requests.

but with opencms and tomcat with IBMJava2-141 and without apache it is
running more stable.
i'll test it over night.


> What is this module where this log message is coming from?
> 
> 
>>com.opencms.modules.mitlinks.navigation.LinkBean] : getLink() :
>>Connection.close() has
>>already been c
>>alled. Invalid operation in this state.
> 
> Does your server crash without this module? Or do you think it is just 
> a follow up to the error?

it is a module our developer wrote, the problem with tomcat crash is older
than this module. sorry for that log.

if apache mod_jk configuration causes all this, what is the preferred
configuration for going life with an opencms project, as long as with apache
it is comfortable to configure access stuff and virtual hosts and logs are
needed by webalizer?
would be an apache-proxy configuration the solution?

thanks for help!

fabian

>>believe me i played around with ulimit and sun java on linux. even 
>>setting everything to unlimited did not the trick. opencms crashed on 
>>sun java too not only because of opencms but also because of opening 
>>too many files and processes.
>>it would be quite an unusable configuration if exeeding system 
>>resources starts to be an issue at no load at all.
>>
>>ibm java is really running much better.
>>doesn't anybody know another reason why opencms makes tomcat crash?
>>
>>regards
>>
>>fabian lienert
>>
>>Marius Popa Adrian wrote:
>>
>>>You can increase the max file limit :)
>>>
>>>On Mon, 25 Aug 2003 12:18:13 +0200
>>>
>>>Fabian Lienert <lienert at mitlinks.ch> wrote:
>>>
>>>>Marius Popa Adrian wrote:
>>>>
>>>>>Have you tried Sun Jvm 1.4.1 ?
>>>>>Maybe is slower but it doesn't crash ...
>>>>>
>>>>>On Mon, 25 Aug 2003 12:02:37 +0200
>>>>>
>>>>>Fabian Lienert <lienert at mitlinks.ch> wrote:
>>>>>
>>>>>>-IBM Java 1.4.1
>>>>
>>>>before we used j2sdk1.4.2. it opened a lot of processes and files 
>>>>till the max.
>>>>ibm java is running much better.

_______________________________________________
This mail is send to you from the opencms-dev mailing list To change your
list options, or to unsubscribe from the list, please visit
http://mail.opencms.org/mailman/listinfo/opencms-dev




More information about the opencms-dev mailing list