high memory usage ....

2003-08-20 Thread Mipam
Hi,

I believe many other of you have encountered the high memory usage with
tomcat? Is there a way to decrease the amount the java processes use?
Furthermore, all the java processes are started under user root.
Is there a way to start the java processes under another user?
Any particular version of java and/or tomcat adviced to deal with these
problems?
I guess auditing the java applications which are written is also very nice
to do and fixup some memory leaks if they're there?
Bye,

Mipam.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: high memory usage ....

2003-08-20 Thread Yann Cébron
 I believe many other of you have encountered the high memory usage with
 tomcat? Is there a way to decrease the amount the java processes use?

yes, take a close look at the Tomcat configuration reference (Connectors)

 Furthermore, all the java processes are started under user root.
 Is there a way to start the java processes under another user?

This has been discussed approx. 2874438 times on this list ;-)

 Any particular version of java and/or tomcat adviced to deal with these
 problems?

In general, memory comsumption is likely to decrease with newer JDKs. I also
noted a noticeably startup speed improvement using 1.4.2 - but YMMV
depending on deployment needs/restrictions. It might also be worth trying
JDKs from different vendors.

Regarding TC versions: always try to stay as up to date as possible - there
are lot of continuos improvements regarding speed, stability, memory
consumption and of cause fixed bugs. Additionally, TC5 has seen a lot of
improvements regarding its inner workings resulting in better overall
speed and less memory consumption.

 I guess auditing the java applications which are written is also very nice
 to do and fixup some memory leaks if they're there?

There a lot of different tools (commercial and OSS) available, just do a
search on google.

Yann




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: high memory usage ....

2003-08-20 Thread rufio
on Wed, 20 Aug 2003 15:55:50 +0200 (MET DST) Mipam [EMAIL PROTECTED]
wrote:

 Hi,
 [..]
 Furthermore, all the java processes are started under user root.

Actually it's not up to java or tomcat.

 Is there a way to start the java processes under another user?

su user -c path_to_executable
or login as user and then run the code.
Also it's possible but unprobable that your java is suided (no way!)

 Any particular version of java and/or tomcat adviced to deal with
 these problems?

No, you rather should experiment with options liek (sun java) -Xm*
and/or gc options

 I guess auditing the java applications which are written is also very
 nice to do and fixup some memory leaks if they're there?

IMO it's hard to make a real memory leak in java.


Regards, Rufio

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: high memory usage ....

2003-08-20 Thread Shapira, Yoav

Howdy,

Yann Cébron [mailto:[EMAIL PROTECTED], said:

Regarding TC versions: always try to stay as up to date as possible - there
are lot of continuos improvements regarding speed, stability, memory
consumption and of cause fixed bugs. Additionally, TC5 has seen a lot of
improvements regarding its inner workings resulting in better overall
speed and less memory consumption.

Have you benchmarked tomcat 5.x vs. 4.1.x to come up with the above speed and memory 
consumption claims?  I'd be very curious to see your benchmarks.  Thanks,

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]