Out of Memory Error

2006-06-26 Thread Marco Aurélio Seraphim da Silva
Hi folks,

I'm using Tomcat 5.0.28 with JVM 1.4.2 (running only Tomcat) under a Win
2000 Server, and it starts to give me the following message:
java.lang.OutOfMemoryError.

To prevent this I start Tomcat using this 2 parameters:
-Xms 521m
-Xmx 1024m

But this isn't enought, some times when the server is a bit stressed the
server memory, used by the JVM incrises up to 1GB and some MB more, then
decrises to 700MB, and starts to increse again up to 1GB.

The memory used increses just as the app sessions, but when the JVM used
memory get at 1GB I have at about 400 sessions. I'm thinking that is to much
memory for 400 sessions on this app.

I'm afraind becuse the memory get up to 1GB when the server is not full
stressed.


There's something I can do to reduce the amount of memory used by the JVM,
or it's normal???

Thanks,

Marco Aurélio Silva


-
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: Tomcat Web Services

2006-04-05 Thread Marco Aurélio Seraphim da Silva
Hi Hung,

I use Axis to create my web services. You can check it out on this url:
http://ws.apache.org/axis/

Any doubts we are here!

Regards,

Marco
Brasil

- Original Message - 
From: hung ngole [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Wednesday, April 05, 2006 8:36 AM
Subject: Tomcat  Web Services


 Hi,
   I' new in Tomcat. I'm using Tomcat 5 and I don't know how I can create a
web service!
   Can you help me?
   Thanks,
   Hung.


 -
 New Yahoo! Messenger with Voice. Call regular phones from your PC and save
big.


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



Re: Problem Starting Tomcat

2006-03-17 Thread Marco Aurélio Seraphim da Silva
Hi,

I got this problem yesterday at the morning, but during the evening it was
working well, and when reboot the machine, it got the same problem.

The port 8005 is been used by another program, but in my server.xml I can't
see nothing using the port 8005.

I'm using it on Windows XP, and tomcat 5.0.28...

This is my server.xml...
?xml version='1.0' encoding='utf-8'?
Server debug=9
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener/
  GlobalNamingResources
Environment name=simpleValue type=java.lang.Integer value=30/
Resource auth=Container description=User database that can be
updated and saved name=UserDatabase
type=org.apache.catalina.UserDatabase/
ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams
  /GlobalNamingResources
  Service debug=9 name=Catalina
Connector acceptCount=100 connectionTimeout=4 debug=9
disableUploadTimeout=true port=81 redirectPort=8443
maxSpareThreads=75 maxThreads=150 minSpareThreads=25
/Connector
Connector port=8009 protocol=AJP/1.3
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
redirectPort=8443
/Connector
Engine debug=9 defaultHost=localhost name=Catalina
  Host appBase=webapps name=localhost
Logger className=org.apache.catalina.logger.FileLogger debug=9
prefix=localhost_log. suffix=.txt timestamp=true verbosity=4/
  /Host
  Logger className=org.apache.catalina.logger.FileLogger debug=9
prefix=catalina_log. suffix=.txt timestamp=true verbosity=4/
  Realm className=org.apache.catalina.realm.UserDatabaseRealm
debug=9/
/Engine
  /Service
/Server


Thanks,

Marco
- Original Message - 
From: Neil Sherman [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org; Marco Aurélio Seraphim
da Silva [EMAIL PROTECTED]
Sent: Friday, March 17, 2006 12:07 PM
Subject: RE: Problem Starting Tomcat


Marco,

This sounds as if Tomcat is attempting to bind to a port that is already in
use.

You should check your server.xml file to see which ports Tomcat is
attempting to bind too, you can then check to see if this port is already in
use by running:

Netstat -a

Has this setup worked previously ?  If so is tomcat already running ?

How are you starting tomcat ? And under what OS ?

Neil

-Original Message-
From: Marco Aurélio Seraphim da Silva [mailto:[EMAIL PROTECTED]
Sent: 17 March 2006 15:04
To: users@tomcat.apache.org
Subject: Problem Starting Tomcat



  When I Start tomcat i got this error:

StandardServer.await: create[8005]: java.net.BindException: Address already
in use: JVM_Bind
java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
...


Someone why are this hapennig?

Thanks,

Marco


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


This email message contains confidential information and is intended for the
use of its intended recipient only.  Access to this email by anyone else is
unauthorised.  If you are not the intended recipient you are hereby notified
that any use, disclosure, copying or distribution or any action taken or
omitted to be taken in reliance on it is strictly prohibited.

If this communication has been sent to you in error, please notify us
immediately.

Action Information Management Ltd.
129 Devizes Road, Hilperton, Trowbridge, Wiltshire BA14 7SZ.
Tel: +44 (0) 1225 711200
Fax: +44 (0) 1225 711222
Website www.aimltd.co.uk
email: [EMAIL PROTECTED]





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



Re: Problem Starting Tomcat - Now works

2006-03-17 Thread Marco Aurélio Seraphim da Silva
Yes, that was the problem the NetBeans was using the same port...

I had to use windows registry to remove the program, the was no evidence of
it...

Thanks all,

Marco

- Original Message - 
From: Nenad Bosanac [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, March 17, 2006 1:41 PM
Subject: Re: Problem Starting Tomcat


 Well I had same problem with Tomcat and I use Netbeans
 5.
 I solved this problem by stopping server in NetBeans 5
 another Runtime window in NetbBeans 5,and now
 everything working fine.
 Yes sometimes i got again this situation but i solved
 again on the same problem.
 It happens that Tomcat can`t stopped servis (i don`t
 now why).
 If you don`t use NetBeans press CTRL+ALT+DEL and see
 if any of java.exe is running even you didn`t start
 any Tomcat and if yoy find it kill that process.
 ANd i think it will help
 Bye

 --- Steve Ochani [EMAIL PROTECTED] wrote:

  On 17 Mar 2006 at 13:06, Marco Aurélio Seraphim da
  Sil wrote:
 
   Hi,
  
   I got this problem yesterday at the morning, but
  during the evening it
   was working well, and when reboot the machine, it
  got the same
   problem.
  
   The port 8005 is been used by another program, but
  in my server.xml I
   can't see nothing using the port 8005.
  
 
  8005 is the default shutdown port for tomcat
 
 
   I'm using it on Windows XP, and tomcat 5.0.28...
  
   This is my server.xml...
   ?xml version='1.0' encoding='utf-8'?
   Server debug=9
 Listener
  
 
 className=org.apache.catalina.mbeans.ServerLifecycleListener/
 Listener
  
 
 className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
   /
 GlobalNamingResources
   Environment name=simpleValue
  type=java.lang.Integer
   value=30/ Resource auth=Container
  description=User database
   that can be
   updated and saved name=UserDatabase
   type=org.apache.catalina.UserDatabase/
   ResourceParams name=UserDatabase
 parameter
   namefactory/name
  
 
 valueorg.apache.catalina.users.MemoryUserDatabaseFactory/va
   lue
 /parameter
 parameter
   namepathname/name
   valueconf/tomcat-users.xml/value
 /parameter
   /ResourceParams
 /GlobalNamingResources
 Service debug=9 name=Catalina
   Connector acceptCount=100
  connectionTimeout=4 debug=9
   disableUploadTimeout=true port=81
  redirectPort=8443
   maxSpareThreads=75 maxThreads=150
  minSpareThreads=25
   /Connector
   Connector port=8009 protocol=AJP/1.3
  
 
 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
   redirectPort=8443
   /Connector
   Engine debug=9 defaultHost=localhost
  name=Catalina
 Host appBase=webapps name=localhost
   Logger
  className=org.apache.catalina.logger.FileLogger
   debug=9
   prefix=localhost_log. suffix=.txt
  timestamp=true verbosity=4/
 /Host
 Logger
  className=org.apache.catalina.logger.FileLogger
 debug=9
   prefix=catalina_log. suffix=.txt
  timestamp=true verbosity=4/
 Realm
 
 className=org.apache.catalina.realm.UserDatabaseRealm
   debug=9/
   /Engine
 /Service
   /Server
  
  
   Thanks,
  
   Marco
   - Original Message -
   From: Neil Sherman [EMAIL PROTECTED]
   To: Tomcat Users List users@tomcat.apache.org;
  Marco Aurélio
   Seraphim da Silva [EMAIL PROTECTED]
  Sent: Friday, March
   17, 2006 12:07 PM Subject: RE: Problem Starting
  Tomcat
  
  
   Marco,
  
   This sounds as if Tomcat is attempting to bind to
  a port that is
   already in use.
  
   You should check your server.xml file to see which
  ports Tomcat is
   attempting to bind too, you can then check to see
  if this port is
   already in use by running:
  
   Netstat -a
  
   Has this setup worked previously ?  If so is
  tomcat already running ?
  
   How are you starting tomcat ? And under what OS ?
  
   Neil
  
   -Original Message-
   From: Marco Aurélio Seraphim da Silva
   [mailto:[EMAIL PROTECTED] Sent: 17
  March 2006 15:04 To:
   users@tomcat.apache.org Subject: Problem Starting
  Tomcat
  
  
  
 When I Start tomcat i got this error:
  
   StandardServer.await: create[8005]:
  java.net.BindException: Address
   already in use: JVM_Bind java.net.BindException:
  Address already in
   use: JVM_Bind
   at
  java.net.PlainSocketImpl.socketBind(Native Method)
   ...
  
  
   Someone why are this hapennig?
  
   Thanks,
  
   Marco
  
  
  
 
 -
   To unsubscribe, e-mail:
  [EMAIL PROTECTED] For
   additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
   This email message contains confidential
  information and is intended
   for the use of its intended recipient only.
  Access to this email by
   anyone else is unauthorised.  If you are not the
  intended recipient
   you are hereby notified that any use, disclosure,
  copying or
   distribution

Tomcat and Session

2006-03-09 Thread Marco Aurélio Seraphim da Silva
I'm using AXIS API in my Web Services, and everytime I make a new request,
Tomcat (or AXIS I don't know exactly) creates a HTTP Session, but I don't
need to use Session on my web services.

It's possible to make Tomcat don't create session on requests for the web
services, or tomcat aways create it, independent if you use it or not?

Thanks,

Marco


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