-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: tomcat output
PostPosted: Sat Feb 07, 2004 8:53 pm 
Regular
Regular

Joined: Thu Dec 25, 2003 12:33 am
Posts: 58
Location: Campina Grande, Brasil
hi

how do i completely turn off that output generated in tomcat window? i get a huge list being displayed on the screen. the bigger the database is, the longer this listing is going to take. after every request to the database (done by my application, of course) this listing shows up.i suspect this is the reason of my outOfMemoryError after some time of usage.

Thanks for any comment.

_________________
Ot


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 07, 2004 11:44 pm 
Regular
Regular

Joined: Wed Dec 31, 2003 4:26 am
Posts: 108
Location: Berkeley, CA
Probably a couple of things you want to do.

In the hibernate.cfg.xml file (or the hibernate.properties) file, turn of sql output.

In log4j.properties, set logging to "warn" or even "error" for the offending packages/classes.

In tomcat you can configure a logger for context.

Finally, you can redirect output and tell tomcat to put stdout to /dev/null -- while effective, this is generally not recommended.

Logging to stdout should have no impact on java VM memory consumption.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.