Re: flushing system.out

2006-06-16 Thread Glenn Holliday
I frequently see it used for debugging.  It's an easy place to log to. 
That's also when you most want unbuffered output.  Is that practice 
discommended for other reasons?

--
Glenn Holliday
Computer Sciences Corporation
[EMAIL PROTECTED] 540-644-6636



This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. NOTE: Regardless of content, this e-mail shall not operate to 
bind CSC to any order or other contract unless pursuant to explicit 
written agreement or government initiative expressly permitting the use of 
e-mail for such purpose.





Tim Funk [EMAIL PROTECTED] 
06/16/2006 07:14 AM
Please respond to
Tomcat Users List users@tomcat.apache.org


To
Tomcat Users List users@tomcat.apache.org
cc

Subject
Re: flushing system.out






I doubt you want to print to system.out in a servlet (or jsp).






-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: flushing system.out

2006-06-16 Thread Filip Hanik - Dev Lists
System.out.println is a synchronized call, and will become a performance 
bottleneck on highly concurrent applications,

the ideal is to use a logging framework, and setup an async logger

Filip


Glenn Holliday wrote:
I frequently see it used for debugging.  It's an easy place to log to. 
That's also when you most want unbuffered output.  Is that practice 
discommended for other reasons?


--
Glenn Holliday
Computer Sciences Corporation
[EMAIL PROTECTED] 540-644-6636



This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. NOTE: Regardless of content, this e-mail shall not operate to 
bind CSC to any order or other contract unless pursuant to explicit 
written agreement or government initiative expressly permitting the use of 
e-mail for such purpose.






Tim Funk [EMAIL PROTECTED] 
06/16/2006 07:14 AM

Please respond to
Tomcat Users List users@tomcat.apache.org


To
Tomcat Users List users@tomcat.apache.org
cc

Subject
Re: flushing system.out






I doubt you want to print to system.out in a servlet (or jsp).






-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



--


Filip Hanik

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: flushing system.out

2006-06-16 Thread Nishant Deshpande

I'm using Tomcat 5.0.28 and SuSe Linux 9.3

On 6/15/06, Mir Kasim Ali [EMAIL PROTECTED] wrote:

Can u tell me which OS ure using and what version of Tomcat

On 6/16/06, Nishant Deshpande [EMAIL PROTECTED] wrote:

 i'm printing stuff out to system.out in tomcat, but it doesn't get
 flushed till the end of the request.

 (i've tried system.out.flush())

 has anyone got solutions to this problem? i'm not sure if its a tomcat
 problem or some OS / jvm thing...

 thanks

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




--
Mir Kasim Ali




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



flushing system.out

2006-06-15 Thread Nishant Deshpande

i'm printing stuff out to system.out in tomcat, but it doesn't get
flushed till the end of the request.

(i've tried system.out.flush())

has anyone got solutions to this problem? i'm not sure if its a tomcat
problem or some OS / jvm thing...

thanks

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: flushing system.out

2006-06-15 Thread Mir Kasim Ali

Can u tell me which OS ure using and what version of Tomcat

On 6/16/06, Nishant Deshpande [EMAIL PROTECTED] wrote:


i'm printing stuff out to system.out in tomcat, but it doesn't get
flushed till the end of the request.

(i've tried system.out.flush())

has anyone got solutions to this problem? i'm not sure if its a tomcat
problem or some OS / jvm thing...

thanks

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Mir Kasim Ali