• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Help Tomcat crashing.

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tomcat occaisonally just bombs out on me, no warnings, logs or hints left for me to look at afterwords. Im running on Windows 2K
prof.
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.
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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 http://www.javaranch.com/name.jsp
and re-register yourself.
Thanks.
- satya
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
If I had asked people what they wanted, they would have said faster horses - Ford. Tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic