Hi there,
I have been having a peculiar problem in tomcat and servlet. We have a
queuing mechanism and this queue contains about 2 MB files each every 2
minutes a file comes into the queue and gets processed. There is one
component called parser which read the queued file and once the task is
done on the file deletes the file. What is happening in the tomcat is
that if FILE1 comes at 10.00 AM and then there is a FILE2 at 10.02 AM
it sits in the queue for almost 10 minutes before the processing
happens. Processing as well is randomly done. I dont have a clue why
this is happening. I am using threads to process the files from the
queue. Sometimes FILE1 will sit there for 30 minutes and FILE2 will get
processed in 10 minutes and this behaviour is very inconsistent.
Because of this the queue is getting filled and the processor is
getting bogged as well. If I leave the system for 1 week the processor
goes to 90% usage. But if I restart the service everything is going
well and no problem for another 2 days. Is there any settings that I
need to take care with regard to tomcat memory usage. ANy help would be
greatly appreciated.
Thanks
John
Robert Klemme - 06 Apr 2005 08:49 GMT
> Hi there,
> I have been having a peculiar problem in tomcat and servlet. We have a
[quoted text clipped - 16 lines]
> Thanks
> John
I assume it's rather a problem of your app and not tomcat. Your
description seems inconsistent to me: you say that you have a queue but
that a file put into the queue later is processed earlier than a file put
there earlier. If you have a queue and a single queue processor they
should be processed in order.
Other than that there's really too little information in your posting to
give more precise feedback.
Kind regards
robert