Hello,
we are running a Tomcat 5.0.28 on W2k Server with 2 GB RAM and JVM
1.5.0_11-b03 which is mainly used as application server for (Axis-based)
SOAP Services.
From time to time our Tomcat blows up to use almost the whole available
RAM and finally it crashes.
In the logfile, we find the
Stefan Rainer wrote:
[...]
SEVERE: An exception or error occurred in the container during the request
processing
java.lang.OutOfMemoryError: Java heap space
Exception in thread http-16302-Processor151 java.lang.OutOfMemoryError:
Java heap space
Extract from configuration / status, if needed:
Sorry, I was so shocked by the last info about 64 MB, that I missed what
you wrote about the physical machine...
Stefan Rainer wrote:
Hello,
we are running a Tomcat 5.0.28 on W2k Server with 2 GB RAM and JVM
1.5.0_11-b03 which is mainly used as application server for (Axis-based)
SOAP
I am trying to migrate my application from Resin to Tomcat 6.0.18. The
application runs fine, but my application context name(the context is
created) is coming as null in Tomcat. I tried using context.xml but still I
am facing the same problem.
In Resin the equivalent configuration in resin.conf
Mladen Turk-3 wrote:
Henk Fictorie wrote:
Hi,
I think that I've been bitten by a resolved bug in mod_jk 1.2.27. The
changelog is describing this as:
AJP13: Always send initial POST packet even if the client disconnected
after
sending request but before providing POST data. In that
Abhi wrote:
I am trying to migrate my application from Resin to Tomcat 6.0.18. The
application runs fine, but my application context name(the context is
created) is coming as null in Tomcat.
How are you getting the context name?
web-app id=/Foo root-directory=webapps/Foo/
Can someone
Thanks Mark.
I am getting the context name using the session object
session.getServletContext().getServletContextName()
On Mon, Dec 1, 2008 at 5:23 PM, Mark Thomas [EMAIL PROTECTED] wrote:
Abhi wrote:
I am trying to migrate my application from Resin to Tomcat 6.0.18. The
application runs
Hi there,
we're running some websites which are heavily framed (unfortunately)
using IFrames.
Authorization is done via FormBased Auth using Tomcat's built-in
j_security_check-method.
However, this is giving us some headaches when an application times out.
As you may know, j_security_check
This is an issue with the way getServletContextName() is implemented in
Resin and Tomcat. In Tomcat this returns the display-name of the application
where as in Resin it returns the URL prefix for the servlet context. Once I
added a display name to my web application I am getting the context name
I apologize for not being clear. The code is in the init method.
On Mon, Dec 1, 2008 at 6:14 PM, André Warnier [EMAIL PROTECTED] wrote:
Abhi wrote:
This is an issue with the way getServletContextName() is implemented in
Resin and Tomcat. In Tomcat this returns the display-name of the
Abhi wrote:
This is an issue with the way getServletContextName() is implemented in
Resin and Tomcat. In Tomcat this returns the display-name of the application
where as in Resin it returns the URL prefix for the servlet context. Once I
added a display name to my web application I am getting the
Gregor Schneider wrote:
Now enlarge your personal karma and be so kind to post some
suggestions, please ;)
Try http://securityfilter.sourceforge.net/
--
Mikolaj Rydzewski [EMAIL PROTECTED]
-
To start a new topic, e-mail:
Abhi wrote:
I apologize for not being clear. The code is in the init method.
Tomcat 6.x implements Servlet API 2.5. There's appropiate
ServletContext#getContextPath() method: http://tinyurl.com/5scpfz . So
you can use it from Filter#init() without any problems.
--
Mikolaj Rydzewski
Thanks a ton.
On Mon, Dec 1, 2008 at 6:50 PM, Mikolaj Rydzewski [EMAIL PROTECTED] wrote:
Abhi wrote:
I apologize for not being clear. The code is in the init method.
Tomcat 6.x implements Servlet API 2.5. There's appropiate
ServletContext#getContextPath() method: http://tinyurl.com/5scpfz
Hi Mikolaj,
On Mon, Dec 1, 2008 at 1:50 PM, Mikolaj Rydzewski [EMAIL PROTECTED] wrote:
Try http://securityfilter.sourceforge.net/
- the good news: Your karma has grown
- the bad news: Since SecurityFilter does not support SingleSignOn,
looks that I'm not able to use it without adapting the
Hello Andre,
thank you very much for your comments.
We've modified the java heap memory configuration and will observe the
system. Is there any possibiliy in Tomcat 5.0.28 to turn off
session-persistence? I would like to avoid the creation of
[catalina-home]\work\ . We don't use persistant
Gregor Schneider wrote:
- the bad news: Since SecurityFilter does not support SingleSignOn,
looks that I'm not able to use it without adapting the code.
Another thought: Might a customized JAAS-implementation be a solution?
Since I haven't been dealing with JAAS yet - does anybody know a good
Hi,
we have recently had some hangups of tomcat (5.5.20 on 1.6.05 on linux
2.6.18). The tomcats just stoped replying (all connections timeouted),
but the strange thing was, that
we were unable to create a thread dump (kill -QUIT pid was just
ignored by the jvm).
The machines were idling, no high
Hello,
analyzing some memory problems I am wondering what's about the
memory consumption for tomcat.exe shown in the windows task manager?
- Java Heap size is configured as default (64MB)
- tomcat uses 150 MB according to windows task manager (win 2000, tomcat
running as service)
- Addionally I
Stefan Rainer wrote:
Hello Andre,
thank you very much for your comments.
We've modified the java heap memory configuration and will observe the
system. Is there any possibiliy in Tomcat 5.0.28 to turn off
session-persistence? I would like to avoid the creation of
[catalina-home]\work\ . We
From: Stefan Rainer [mailto:[EMAIL PROTECTED]
Subject: Memory consumption of Tomcat?
- Java Heap size is configured as default (64MB)
Which is rather small for any serious work.
What's up with the 150 MB RAM for tomcat.exe?
The process memory space consists of a lot more than just the Java
From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
Subject: jvm cowardly refuses to print a thread dump
we were unable to create a thread dump (kill -QUIT pid was just
ignored by the jvm).
That's ugly. Sounds like either the OS failed to deliver the signal, or the
JVM is locked up internally
Stefan Rainer wrote:
Hello,
analyzing some memory problems I am wondering what's about the
memory consumption for tomcat.exe shown in the windows task manager?
- Java Heap size is configured as default (64MB)
- tomcat uses 150 MB according to windows task manager (win 2000, tomcat
running as
From: Stefan Rainer [mailto:[EMAIL PROTECTED]
Subject: AW: IOException while loading persisted sessions /
java.lang.OutOfMemoryError: Java heap space
Is there any possibiliy in Tomcat 5.0.28 to turn off
session-persistence?
First, you should be aware that 5.0.28 is no longer supported.
In
Hi,
I am trying to learn how to use jsp, tomcat and Java but I am having some
problems getting any jsp pages to run for my webapp.
I have java 1.5 installed and tomcat5.5 on a Ubuntu machine. I was able to
configure tomcat to get my webapp running in the directory:
/var/www/marlowe/
This
Hello:
How I can calculate the memory that must use a Java application and the
memory that I have to install to a tomcat server to function properly with
that application.
Bye
Hello Andre,
thx for your explanations and the hint with the jconsole tool.
I am already monitoring with it ...
@Chuck: Thank you for your commt. It would be important to be able to plan
the memory consumption of an application in productive environment.
Therefore I am trying to analyze the
From: marlowe [mailto:[EMAIL PROTECTED]
Subject: no jsp files will compile
I have java 1.5 installed and tomcat5.5 on a Ubuntu machine.
Is this a real Tomcat (i.e., one downloaded from tomcat.apache.org), or is it a
3rd-party repackaged version? There are no end of problems with the
Hi Alberto,
I think this is merely try and error.
Maybe jconsole would help as suggested by other people today.
I personally have not used it before.
Cheers.
---
Creo que la única manera de averiguarlo es prueba y error.
Hoy, ya varias personas han mencionado una utilidad que se llama
jconsole,
From: Stefan Rainer [mailto:[EMAIL PROTECTED]
Subject: AW: Memory consumption of Tomcat?
It would be important to be able to plan the memory
consumption of an application in productive environment.
The only way to reliably determine that is to actually run the application
under load in an
thanks...
2008/12/2 Pieter Temmerman [EMAIL PROTECTED]
Hi Alberto,
I think this is merely try and error.
Maybe jconsole would help as suggested by other people today.
I personally have not used it before.
Cheers.
---
Creo que la única manera de averiguarlo es prueba y error.
Hoy, ya
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
That's ugly. Sounds like either the OS failed to deliver the
signal, or the JVM is locked up internally (probably the
latter).
That's rather what I was reckoning. I've had signal delivery fail before if
all the threads were stuck in
its very weird indeed. We had acted proactively on a tomcat which
started to show same symptoms (cpu load going higher (35%) but users
going down (means it replies slower than the other machines and the lb
gives less traffic to it) and after checking the logs, sent the QUIT
signal which worked
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Michael,
Michael Ludwig wrote:
[Handing out multiple objects] seems to have caused the effect observed,
which was the absence of
the HTML file included via RequestDispatcher.include() in both the
buffer used to capture the response and the
Leon Rosenberg schrieb:
We assume that the other tomcats didn't produce any thread dumps
because our trigger happy system admins just sent the kill -9 too soon
after the kill -3, and the jvm was overloaded. Well it's a wild guess,
but i have no better one yet (unless jvm really locked up
From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
Subject: Re: jvm cowardly refuses to print a thread dump
and two in
at java.util.ArrayList.size(ArrayList.java:177)
Just for grins, can you post the full stack trace for those two? (Or e-mail me
the whole thing.) There's nothing unusual at
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Snaglefrac,
Snaglefrac wrote:
Now, when someone logs in they are using an unsecured login screen and there
passwords are sent unencrypted. The solution! HTTPS, no sweat, i have this
working to. The only problem I have is having the https and LDAP
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Vasanth,
Vasanth Kumar ravi wrote:
Chuck
We tried using the jprobe to profile the application. Now we are trying out
lighter profiler as the jprobe was a heavy one.
Don't worry too much about the weight of the profiler: the whole point
is to see
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Chuck,
Caldarale, Charles R wrote:
From: Andrew Hole [mailto:[EMAIL PROTECTED] Subject: Re:
Session affinity
Is not very smart... There is some problem with that?
I think so - without some intelligence in the load balancer, I don't
think you
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Adam,
AD wrote:
I am trying to troubleshoot an error that seems to occur quite frequently
with no real solution. I constantly see
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link
failure in my application after the
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Iñigo,
Iñigo Mediavilla Saiz wrote:
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC
driver class 'org.gjt.mm.mysql.Driver'
Others have answered your original question.
Note that Connector/J has used the com.mysql.jdbc.Driver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Michael,
Michael Ludwig wrote:
But then, this is without any filters. Let's add a filter.
included HTML
before include
after include
This is wrong. The output order is mangled. What happened?
Is this the filter you wrote in your other
Caldarale, Charles R wrote:
From: marlowe [mailto:[EMAIL PROTECTED]
Subject: no jsp files will compile
I have java 1.5 installed and tomcat5.5 on a Ubuntu machine.
Is this a real Tomcat (i.e., one downloaded from tomcat.apache.org), or is
it a 3rd-party repackaged version? There are
From: marlowe [mailto:[EMAIL PROTECTED]
Subject: RE: no jsp files will compile
I installed it from ubuntu apt-get.
Try installing a real Tomcat and see if the problem persists.
Running Tomcat as root is really not recommended:
http://wiki.apache.org/tomcat/FAQ/Security#Q3
From: Peter Crowther [mailto:[EMAIL PROTECTED]
Subject: RE: jvm cowardly refuses to print a thread dump
Might the code have ended up with all threads stuck in OS
calls? It feels a little unlikely, as I assume the JVM keeps
a couple of threads for itself...
Unlikely that everybody's off in
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Michael,
Michael Ludwig wrote:
The very fact that object leak from one web app into another is a
possibility seems to constitute a strong argument in favour of strict
monitoring, be it only to shield oneself from errors that might be
difficult to
Hi,
I am trying to deploy a simple war file into a freshly downloaded tomcat
6.0.18.
I noticed a strange behavior when I tried to configure a virtual host by
changing the Host Name in server.xml from the default localhost to
mydomain.com.
The strange behavior goes like this
1. the web.xml
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Chuck,
Caldarale, Charles R wrote:
From: Prastein, Rebeccah H
[mailto:[EMAIL PROTECTED]
Subject: RE: Updating users
There must be a way - Managing users is one of the things
that the admin webapp does.
The admin webapp had access to Tomcat's
From: Anand HS [mailto:[EMAIL PROTECTED]
Subject: What exactly happens when I configure a different host
I noticed a strange behavior when I tried to configure a
virtual host by changing the Host Name in server.xml from
the default localhost to mydomain.com.
If that's all you did, then you
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Rebeccah,
Prastein, Rebeccah H wrote:
I'm hoping someone here can help me with this; I've searched all over
the web, and any references to FileAppenders not flushing in the log4j
lists get the response, not a log4j problem, must be your
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Subject: Re: Updating users
What the OP needs is to use a real user database instead of the
tomcat-users.xml.
Yes, Hassan already told her that, and that's what I tried to imply by
suggesting she implement her own Realm.
- Chuck
THIS
I would like Tomcat to automatically redirect to a special session expiry
notification page when a user session times out. I am currently using the
meta tag to force redirection as follows:
meta http-equiv=refresh
content=${pageContext.session.maxInactiveInterval};url=sessionTimeout.jsp
However,
Thats exactly what I have.
Here is the server.xml configuration -
Service name=Tomcat-Standalone-Admin
Connector port=80 protocol=HTTP/1.1
connectionTimeout=2
redirectPort=443
address=10.168.51.12/
Connector port=443
From: Anand HS [mailto:[EMAIL PROTECTED]
Subject: Re: What exactly happens when I configure a different host
Thats exactly what I have.
Good.
Context path= docBase=admin-web
Valve className=org.apache.catalina.valves.AccessLogValve
I did these steps -
1. Renamed admin-web to ROOT.
2. made sure to delete existing ROOT folder that comes bundled with tomcat.
3. Added context.xml to webapps/ROOT/META-INF with contents being
Context
/Context
4. This is the error on restarting
INFO: Marking servlet action as unavailable
Dec 1,
I downloaded jakarta-tomcat-connectors-4.1.24-src.
But compilation gave me:
/usr/ports/www/mod_webapp/work/jakarta-tomcat-connectors-4.1.24-src/weba
pp/include/apr_network_io.h:121: error: syntax error before
apr_uint32_t
/usr/ports/www/mod_webapp/work/jakarta-tomcat-connectors-4.1.24-src/weba
Michael Ludwig schrieb am 26.11.2008 um 20:57:12 (+0100):
LC_MESSAGES or LC_ALL would be the ones to look out for. LC_CTYPE is
for character classification.
Watch out for LANG, which overrides everything else.
I was mistaken here. LANG is *not* the one that overrides everything
else. LANG is
Christopher Schultz schrieb am 01.12.2008 um 16:16:49 (-0500):
Michael Ludwig wrote:
The very fact that object leak from one web app into another is a
possibility seems to constitute a strong argument in favour of
strict monitoring, be it only to shield oneself from errors that
might be
Thanks for your help Chuck, I probably should have installed a 'real' version
as you said but I did figure out the problem.
Under the work directory, the directory for my webapp has it's permissions
set to root. I don't know how this directory got created but, once I
changed the permissions to
From: Anand HS [mailto:[EMAIL PROTECTED]
Subject: Re: What exactly happens when I configure a different host
java.lang.ClassNotFoundException:
com.psi.servlet.Log4jInitializerServlet
So where is the class file for com.psi.servlet.Log4jInitializerServlet located?
- Chuck
THIS
The thing is this servlet is not present at all.
It is wrongly being referenced web.xml.
The original point of my question was just that..
When I configure host name as localhost ( which is by default ) , tomcat
doesnt throw error saying this class is not found.
But When I change the host name to
From: Anand HS [mailto:[EMAIL PROTECTED]
Subject: Re: What exactly happens when I configure a different host
The thing is this servlet is not present at all.
Have you modified conf/web.xml at all?
Delete everything under conf/Catalina to make sure there are no left-over
Context elements
Have you modified conf/web.xml at all?
[No.. I have not modified web.xml, because the war I have deployed has its
own web.xml ]
Delete everything under conf/Catalina to make sure there are no left-over
Context elements pointing to webapps somewhere.
[I have done this. Same error even after that]
From: Anand HS [mailto:[EMAIL PROTECTED]
Subject: Re: What exactly happens when I configure a different host
Here is the web.xml from my webapp -
servlet
servlet-nameaction/servlet-name
servlet-classcom.psi.servlet.Log4jInitializerServlet/servlet-class
init-param
I extremely sorry for not being able to clarify to you.
There is definitely a reference to the Log4jInitialiserservlet in my web.xml
( pasted above ).
The servlet is missing in my jars/wars. . So i expect tomcat to throw error
when it starts
When tomcat starts with host name = localhost, it does
From: Anand HS [mailto:[EMAIL PROTECTED]
Subject: Re: What exactly happens when I configure a different host
When tomcat starts with host name = localhost, it does NOT
throw any error about missing class file.
Sorry, now I understand your concern.
Have you tried changing the Host name and
Michael Ludwig wrote:
Michael Ludwig schrieb am 26.11.2008 um 20:57:12 (+0100):
LC_MESSAGES or LC_ALL would be the ones to look out for. LC_CTYPE is
for character classification.
Watch out for LANG, which overrides everything else.
I was mistaken here. LANG is *not* the one that overrides
Hello everybody,
I have installed many, many servers with Windows 2003 R2 x64 and Intel CPUs and
IIS and Tomcat with ISAPI Connector and it works great.
But now I have a hosting server with an AMD Opteron Quad Core 1352 2 ,1Ghz CPU
and installed Windows 2003 Server R2 Standard. I make the same
Yes.
I changed the Host Name and Engine defaultHost back to localhost and the
error vanishes.
However, it re appears when I give a different name than localhost.
On Mon, Dec 1, 2008 at 10:14 PM, Caldarale, Charles R
[EMAIL PROTECTED] wrote:
From: Anand HS [mailto:[EMAIL PROTECTED]
69 matches
Mail list logo