File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Help Tomcat crashing. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Help Tomcat crashing." Watch "Help Tomcat crashing." New topic

Help Tomcat crashing.

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Tomcat occaisonally just bombs out on me, no warnings, logs or hints left for me to look at afterwords. Im running on Windows 2K
The only thing I can think off is that I have many hundreds of lines of HTML planted in out.println(), which surely has to be the norm for server side. I know if I flush the stream ie out.flush() the crashes are a lot less, though I still get crash tomcat, the crashes are indertiminate and one page can work all the time or no times.
This is bugging me no end, Do I need to go to another servlet engine.
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

my first attempt would be to increase the memory property
of a dos shell, in case you are running it in Windows.

Also, "mo_patel" doesn't confirm to the naming policy
on the javaranch. Pl. refer
and re-register yourself.
- satya

Take a Minute, Donate an Hour, Change a Life
mo patel

Joined: Mar 07, 2001
Posts: 15
Thanks done both things. I didnt particularly like changing my id as its the name I use almost every where, I know the "_" is frowned upon in Java better to Capitalise the second word. but hey thats not even the standard here.... Anyway

My real Question is how much memory do you recommend I give to DOS (cmd) boxes in WIN 2K. I will be carrying around large buffers of HTML inline codes, many hundreds of lines. Why the hell dosent Tomcat like the Auto setting for memory any way.
mo patel

Joined: Mar 07, 2001
Posts: 15
Increased the memory of the dos cmd the problems still there.
I increased the memory of the dos shell that runs startup.bat as Tomcats starts in another dos cmd shell I assume that the memory parameters are inherited (like UNIX). Is this safe to assume? If not how do I change the memory parameters of the running Tomcat cmd box.
I agree. Here's the link:
subject: Help Tomcat crashing.
It's not a secret anymore!