tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: Tomcat Crash
Date Wed, 21 Aug 2002 15:16:10 GMT
Maybe another approach will help. Can you write a little command-line
test program to do the import?  One that will read, parse the file, set
up the ImportManager, and do your DB work, all outside of tomcat.
Perhaps that will make the issue easier to pinpoint and then debug.
It's certainly easier to profile (using OptimizeIt or whatever profiler
you prefer) outside the servlet container.

On the other hand, if the program runs quickly and without memory leaks
outside of tomcat, we probably have a more serious tomcat issue at hand.

Yoav Shapira
Millennium ChemInformatics

>-----Original Message-----
>From: Durham David Cntr 805CSS/SCBE []
>Sent: Wednesday, August 21, 2002 11:03 AM
>To: Tomcat Users List
>Subject: RE: Tomcat Crash
>> -----Original Message-----
>> From: Shapira, Yoav []
>> Did you try to get a new connection each time and not go through the
>> pool?  That would degrade performance significantly (although
>> you could
>> just get one connection at the beginning and use it until
>> you're done),
>> but maybe memory behavior will be better?
>	Just tested getting a new connection, the system will still
>I've noticed the smaller the file import, the longer it takes for
Tomcat to
>crash after I've done an import.  i.e.  a file with 12 lines in it will
>import successfully, then I can get maybe 20 more connections before
>crashes.  Where as a file with 50 lines in it will cause Tomcat to
>immediately after the import, anymore lines than that and the import
>fail before the import completes.  The number of lines that will
succeed is
>variable.  Sometimes 50 lines will get imported, sometimes Tomcat will
>crash before I can import 50 lines.   BTW, Tomcat is not reporting any
>errors in the logs.
>To unsubscribe, e-mail:   <mailto:tomcat-user-
>For additional commands, e-mail: <mailto:tomcat-user-

View raw message