RE: Number of instances with SingleThreadModel

2003-11-14 Thread Neal
Does anyone know how I can check to see how much memory is in use or
available on Tomcat at any point in time?  I've been getting a
java.error.OutOfMemory error lately and I need to be able to track
what's going on.

Thanks.
Neal



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



Re: Number of instances with SingleThreadModel

2003-11-14 Thread Jon Wingfield
Useful methods on the Runtime class:
In jdk 1+  Runtime.getRuntime().getTotalMemory();
In jdk 1+  Runtime.getRuntime().getFreeMemory();
In jdk 1.4 Runtime.getRuntime().getMaxMemory();
These methods are diagnostic. You'll need to find out why you are 
getting OutOfMemory errors. Time to profile your app...

HTH,

Jon

Neal wrote:

Does anyone know how I can check to see how much memory is in use or
available on Tomcat at any point in time?  I've been getting a
java.error.OutOfMemory error lately and I need to be able to track
what's going on.
Thanks.
Neal


-
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]


Re: Number of instances with SingleThreadModel

2003-11-14 Thread cyril vidal
Hi,

These infos are useful but have nothing to deal with my initial question;-))
So, I ask it again, if some people know about THIS subject:

is it possible in Tomcat's configuration to specify
the number of servlet instances created when this servlet implements the
javax.servlet.SingleThreadModel interface.

Thanks in advance for your response,
Regards,
Cyril.

Please don't use this thread to initiate another subject...

- Original Message -
From: Jon Wingfield [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, November 14, 2003 10:58 AM
Subject: Re: Number of instances with SingleThreadModel


 Useful methods on the Runtime class:
 In jdk 1+  Runtime.getRuntime().getTotalMemory();
 In jdk 1+  Runtime.getRuntime().getFreeMemory();
 In jdk 1.4 Runtime.getRuntime().getMaxMemory();
 These methods are diagnostic. You'll need to find out why you are
 getting OutOfMemory errors. Time to profile your app...

 HTH,

 Jon


 Neal wrote:

  Does anyone know how I can check to see how much memory is in use or
  available on Tomcat at any point in time?  I've been getting a
  java.error.OutOfMemory error lately and I need to be able to track
  what's going on.
 
  Thanks.
  Neal
 
 
 
  -
  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]



RE: Number of instances with SingleThreadModel

2003-11-14 Thread Shapira, Yoav

Howdy,

These infos are useful but have nothing to deal with my initial
question;-

Yes, don't you hate it when people hijack threads?

is it possible in Tomcat's configuration to specify
the number of servlet instances created when this servlet implements
the
javax.servlet.SingleThreadModel interface.

No, it's not possible to specify.

SingleThreadModel is evil, don't use it.  If you're curious why, search
the archives of this list.

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]



Re: Number of instances with SingleThreadModel

2003-11-14 Thread Remy Maucherat
cyril vidal wrote:

Hi,

These infos are useful but have nothing to deal with my initial question;-))
So, I ask it again, if some people know about THIS subject:
is it possible in Tomcat's configuration to specify
the number of servlet instances created when this servlet implements the
javax.servlet.SingleThreadModel interface.
No. The value is 20 instances.

There's a constant you can change in the StandardWrapper class, of 
course, and a parameter could be added in StandardContext to set it.

--
x
Rémy Maucherat
Senior Developer  Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Number of instances with SingleThreadModel

2003-11-14 Thread Tim Funk
SingleThreadModel is also deprecated in 2.4 Servlet API

-Tim



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


Re: Number of instances with SingleThreadModel

2003-11-14 Thread cyril vidal
thanks all for your responses.

Regards,
Cyril.

- Original Message -
From: Remy Maucherat [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, November 14, 2003 2:57 PM
Subject: Re: Number of instances with SingleThreadModel


 cyril vidal wrote:

  Hi,
 
  These infos are useful but have nothing to deal with my initial
question;-))
  So, I ask it again, if some people know about THIS subject:
 
  is it possible in Tomcat's configuration to specify
  the number of servlet instances created when this servlet implements the
  javax.servlet.SingleThreadModel interface.

 No. The value is 20 instances.

 There's a constant you can change in the StandardWrapper class, of
 course, and a parameter could be added in StandardContext to set it.

 --
 x
 Rémy Maucherat
 Senior Developer  Consultant
 JBoss Group (Europe) SàRL
 x


 -
 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]



Re: Number of Instances

2000-11-16 Thread dynacomconsulting

Hi,
I see the only possibility  with servlet programming
i.e implementing the single thread model.Can U please
elobarate on the ptoblem with single thread model.
Ravi
--- Lauber Christof [EMAIL PROTECTED] wrote:
 How must I configure the jakarta-tomcat 3.1 that
 just one Instance per 
 servlet is allowed? Which config file do I have to
 edit(server.xml, 
 web.xml, ? ) ?
   The servlet does not implement the Single Thread
 Model,regardless it 
 happens that the Servlet's init Methode is called
 twice!
 


__
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/



RE: Number of Instances

2000-11-16 Thread CPC Livelink Admin


Here's my humble attempt to explain.  The single thread model says to the
servlet container that your servlet should only be run on one thread only.
Multithreading in the server is then implemented by creating multiple of
your single thread model servlets, one for each thread that is required to
respond to requests.

When are your inits being called?  Is it possible that your servlet is being
garbage collected and then respawned?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 16, 2000 02:52 PM
To: [EMAIL PROTECTED]
Subject: Re: Number of Instances


Hi,
I see the only possibility  with servlet programming
i.e implementing the single thread model.Can U please
elobarate on the ptoblem with single thread model.
Ravi
--- Lauber Christof [EMAIL PROTECTED] wrote:
 How must I configure the jakarta-tomcat 3.1 that
 just one Instance per
 servlet is allowed? Which config file do I have to
 edit(server.xml,
 web.xml, ? ) ?
   The servlet does not implement the Single Thread
 Model,regardless it
 happens that the Servlet's init Methode is called
 twice!



__
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/




Re: Number of Instances

2000-11-15 Thread Craig R. McClanahan

Lauber Christof wrote:

 How must I configure the jakarta-tomcat 3.1 that just one Instance per
 servlet is allowed? Which config file do I have to edit(server.xml,
 web.xml, ? ) ?

The only thing you have to "configure" is your servlet -- be sure you do
*not* implement the SingleThreadModel interface, and Tomcat (or any other
servlet container) is required to create only one instance per servlet
definition (i.e. per servlet entry in web.xml).

Craig McClanahan