Try:

Runtime runtime = Runtime.getRuntime();
long totalMemory = runtime.totalMemory();
long freeMemory = runtime.freeMemory();

Also Thread counting:

ThreadGroup group = Thread.currentThread().getThreadGroup();
while (group.getParent() != null)
        group = group.getParent();

int activeCount = group.activeCount();

Regards,

Carl

-----Original Message-----
From: Salvatierra, Mauricio h (M.H.) [mailto:[EMAIL PROTECTED] 
Sent: 07 April 2004 02:58 PM
To: Tomcat Users List
Subject: measure memory


Hi people. I need measure the memory use for my application in the tomcat
4.1.12. Some body know how do.
  Thanks and sorry mi inglish

        Saludos !!
        SALVATIERRA, Mauricio Hugo
        Information Technology 
        Ford Argentina S.C.A.  
        Phono/Fax: 54-11-4756-8750 
        mailto: [EMAIL PROTECTED]
Visit our page: http//www.ford.com.ar/

****************************************************************************
****************************
STRICTLY CONFIDENTIAL. The contents of this e-mail and any attachments are
strictly confidential and property of Ford Argentina S.C.A. They may not be
used or disclosed by someone who is not a named recipient. If you have
received this e-mail in error please notify the sender by replying to this
email inserting the word "Misdirected" as the message and delete the present
message.
****************************************************************************
****************************



-----Original Message-----
From: Mark Nye [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 09:53
To: 'Tomcat Users List'
Subject: RE: JK2 connector built and installed but is there something wrong?


Hi,
  I had a similar problem.  The line for the uri has to have a directory
that is under $TOMCAT_HOME/webapps.  

[uri:/jsp-examples/*] would require the directory
$TOMCAT_HOME/webapps/jsp-examples.  As Drew said you can try
servlets-examples instead of jsp-examples.  Those directories are under the
webapps folder by default.

Mark

-----Original Message-----
From: Hamilton, Andrew [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 07, 2004 8:28 AM
To: Tomcat Users List
Subject: RE: JK2 connector built and installed but is there something wrong?

try doing this

[uri:/jsp-examples/*]
worker=ajp13:localhost:8009

There is no examples structure.  You can also try servlets-examples.

Drew

-----Original Message-----
From: Kevin Struckhoff [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 7:22 PM
To: [EMAIL PROTECTED]
Subject: JK2 connector built and installed but is there something wrong?


After downloading the source and building it, I
finally have mod_jk2 at least loaded into Apache Web
Server 2.0.48.

However, in the docs, it says to add these 2
directives to workers2.properties:

[uri:/examples/*]
worker=ajp13:localhost:8009

When I send the browser to http://localhost/examples/,
I get a -404 error (not found).

What am I missing? Apache starts up just fine.

TIA.

=====
Thanks.

Kevin

-- Enjoy Life, Drink and Code Java!

__________________________________
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/

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


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


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

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

Reply via email to