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 / Databases / April 2005

Tip: Looking for answers? Try searching our database.

Tomcat and servlet performance issues

Thread view: 
john_rajendran@xiotech.com - 06 Apr 2005 06:01 GMT
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


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



©2008 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.