Hi,
I am having a lot of Java Heap OutOfMemory issues. The first change I did
was to add more memory to JVM:
export CATALINA_OPTS=-XX:MaxPermSize=512m -Xms512m -Xmx2048m -server
Yet I have 2 questions
- What are you real life configurations? In a very busy prod environment
what parameters do
On 17/05/2010 09:25, Ozgur Ozdemircili wrote:
Hi,
I am having a lot of Java Heap OutOfMemory issues. The first change I did
was to add more memory to JVM:
export CATALINA_OPTS=-XX:MaxPermSize=512m -Xms512m -Xmx2048m -server
Yet I have 2 questions
- What are you real life
Hi,
-Rhel 5.3 x64
-java version 1.6.0_16
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) 64-Bit Server VM (build 14.2-b01, mixed mode)
-Apache tomcat 6.0.26
-Dual core Intel(R) Xeon(R) CPU E3110 @ 3.00GHz and 4 GB memory each.
Thanks.
Özgür Özdemircili
On 17/05/2010 09:56, Ozgur Ozdemircili wrote:
Hi,
-Rhel 5.3 x64
-java version 1.6.0_16
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) 64-Bit Server VM (build 14.2-b01, mixed mode)
-Apache tomcat 6.0.26
-Dual core Intel(R) Xeon(R) CPU E3110 @ 3.00GHz and 4 GB
Ozgur Ozdemircili wrote:
Hi,
-Rhel 5.3 x64
-java version 1.6.0_16
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) 64-Bit Server VM (build 14.2-b01, mixed mode)
-Apache tomcat 6.0.26
-Dual core Intel(R) Xeon(R) CPU E3110 @ 3.00GHz and 4 GB memory each.
Hè ? do you
On 17/05/2010 10:15, Pid wrote:
On 17/05/2010 09:56, Ozgur Ozdemircili wrote:
Hi,
-Rhel 5.3 x64
-java version 1.6.0_16
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) 64-Bit Server VM (build 14.2-b01, mixed mode)
-Apache tomcat 6.0.26
-Dual core Intel(R) Xeon(R)
Hi,
You could set the one fourth of physical memory size(the
recommended heap size) for -Xms,-Xmx arguments.
What's more, you also analyze the heap using jmap.
Mercy
On 05/17/2010 05:16 PM, André Warnier wrote:
Ozgur Ozdemircili wrote:
Hi,
-Rhel 5.3 x64
-java version 1.6.0_16
Hi,
I have the default server.conf file with :
Connector port=8080 protocol=HTTP/1.1
maxThreads=250
connectionTimeout=2
redirectPort=8443 /
I do not have any Executor.
When I check the manager status in detail I see the threads with ? in front
On 16.05.2010 22:15, Markus Mehrwald wrote:
Am 2010-05-16 21:11, schrieb André Warnier:
Markus Mehrwald wrote:
I did not find the actual problem but I can live with this script not
delivered by apache. Maybe this is because the js is inside a jar file?
I have to admit that in my previous
On 26.04.2010 13:56, Philip Hunt (Straker Software) wrote:
Hi,
I have the following config, to pass requests through Apache to Tomcat using
AJP:
RewriteEngine on
RewriteRule ^/abc - [L,PT]
RewriteRule (.*) /abc$1 [L,PT]
JkMount /abc/* node1
This works, to the point that requests to
On 17/05/2010 10:29, Mercy wrote:
Hi,
You could set the one fourth of physical memory size(the recommended
heap size) for -Xms,-Xmx arguments.
Where does this recommendation come from?
It would mean that with 16Gb of RAM one should only use 4Gb for the heap.
p
What's more, you also
Hi,
Lately in my production environment I am getting URL is unavailable
in my browser when I try to hit the site.
I found the following in the catalina.log file:
SEVERE: Protocol handler pause failed
java.net.ConnectException: Connection refused: connect
at
Hi all,
just a quick question.
I am currently using a stand-alone Tomcat Server to run an application.
However, I plan to expand this application (which is web-based) to enable
Authentication processes from external IDPs (Identity Providers).
Unfortunately, to be able to implement this,
Take a look at http://tomcat.apache.org/connectors-doc/
I think you can also use apache mod_proxy.
On Mon, May 17, 2010 at 1:36 PM, Stephen . marr...@hotmail.com wrote:
Hi all,
just a quick question.
I am currently using a stand-alone Tomcat Server to run an application.
However, I plan
I forgot to mention java 1.6.0_18
Windows Server 2003
On Mon, May 17, 2010 at 9:00 AM, Richard Sayre richardsa...@gmail.com wrote:
Hi,
Lately in my production environment I am getting URL is unavailable
in my browser when I try to hit the site.
I found the following in the catalina.log
On Sunday 16 May 2010 19:18:47 Caldarale, Charles R wrote:
From: Markus Mehrwald [mailto:mmehrw...@gmx.at]
[...]
Additionally we can use mod_security to precheck requests
delivered to tomcat to remove use- and sensless requests
and minimise the risk of attacks.
Why do you think httpd
On 17/05/2010 12:36, Stephen . wrote:
Hi all,
just a quick question.
I am currently using a stand-alone Tomcat Server to run an application.
However, I plan to expand this application (which is web-based) to enable
Authentication processes from external IDPs (Identity Providers).
Hi,
thanks for your response.
However, I would need some more explanation.
Exactly where and how would I implement those Tomcat Connectors ?
Apparently, all I have is the Tomcat engine itself. So, what I need is an
actual Apache server. (Am I right?)
Another thing : I've had my Tomcat
Ozgur Ozdemircili wrote:
Hi,
I have the default server.conf file with :
Connector port=8080 protocol=HTTP/1.1
maxThreads=250
connectionTimeout=2
redirectPort=8443 /
I do not have any Executor.
When I check the manager status in detail I see
Hi Pid,
HTTPD doesn't help me much because I am using Windows.
(I assume HTTPD is only for Unix/Linux systems)
-Stephen
Date: Mon, 17 May 2010 12:54:42 +0100
From: p...@pidster.com
To: users@tomcat.apache.org
Subject: Re: Putting APACHE in front of a stand-alone Tomcat Server
On
2010/5/17 Stephen . marr...@hotmail.com:
Hi Pid,
HTTPD doesn't help me much because I am using Windows.
(I assume HTTPD is only for Unix/Linux systems)
:)
For windows it is httpd.exe.
http://httpd.apache.org/
http://httpd.apache.org/download.cgi
http://www.apachelounge.com/download/
Hi,
Please take a look at this:
http://java.sun.com/javase/6/docs/technotes/guides/vm/gc-ergonomics.html
*maximum heap size:*
Smaller of 1/4th of the physical memory or 1GB. Before J2SE 5.0, the
default maximum heap size was 64MB. You can override this default
using the |-Xmx|
2010/5/17 Richard Sayre richardsa...@gmail.com:
Hi,
Lately in my production environment I am getting URL is unavailable
in my browser when I try to hit the site.
I found the following in the catalina.log file:
SEVERE: Protocol handler pause failed
java.net.ConnectException: Connection
On 5/17/2010 8:09 AM, Stephen . wrote:
Hi Pid,
HTTPD doesn't help me much because I am using Windows.
(I assume HTTPD is only for Unix/Linux systems)
Incorrect assumption. It has pretty much the same uses on windows as it
does on *x systems.
D
On Mon, May 17, 2010 at 1:58 PM, Stephen . marr...@hotmail.com wrote:
Hi,
thanks for your response.
However, I would need some more explanation.
Exactly where and how would I implement those Tomcat Connectors ?
Apparently, all I have is the Tomcat engine itself. So, what I need is an
Stephen . wrote:
Hi,
thanks for your response.
However, I would need some more explanation.
Exactly where and how would I implement those Tomcat Connectors ?
Apparently, all I have is the Tomcat engine itself. So, what I need is an actual
Apache server. (Am I right?)
Another thing : I've
Sorry if I drop in here getting a bit off-topic, howver:
On Mon, May 17, 2010 at 1:54 PM, Pid p...@pidster.com wrote:
On 17/05/2010 12:36, Stephen . wrote:
HTTPD can handle authentication, or Tomcat can, but not both at the same
AFAIK. The AJP Connector will need it's 'tomcatAuthentication'
On 17/05/2010 12:58, Stephen . wrote:
Hi,
thanks for your response.
However, I would need some more explanation.
Exactly where and how would I implement those Tomcat Connectors ?
Part of the config is in Tomcat's server.xml, and part of it would be in
the relevant files of HTTPD,
On 17/05/2010 13:43, Gregor Schneider wrote:
Sorry if I drop in here getting a bit off-topic, howver:
On Mon, May 17, 2010 at 1:54 PM, Pid p...@pidster.com wrote:
On 17/05/2010 12:36, Stephen . wrote:
HTTPD can handle authentication, or Tomcat can, but not both at the same
AFAIK. The
On 17/05/2010 13:18, Mercy wrote:
Hi,
Please take a look at this:
http://java.sun.com/javase/6/docs/technotes/guides/vm/gc-ergonomics.html
*maximum heap size:*
Smaller of 1/4th of the physical memory or 1GB. Before J2SE 5.0, the
default maximum heap size was 64MB. You can
On 17 May 2010 13:18, Mercy techme...@gmail.com wrote:
Hi,
Please take a look at this:
http://java.sun.com/javase/6/docs/technotes/guides/vm/gc-ergonomics.html
*maximum heap size:*
Smaller of 1/4th of the physical memory or 1GB. Before J2SE 5.0, the
default maximum heap size was
Thank you.
Mercy
On 05/17/2010 08:58 PM, Pid wrote:
On 17/05/2010 13:18, Mercy wrote:
Hi,
Please take a look at this:
http://java.sun.com/javase/6/docs/technotes/guides/vm/gc-ergonomics.html
*maximum heap size:*
Smaller of 1/4th of the physical memory or 1GB. Before J2SE 5.0,
From: André Warnier [mailto:a...@ice-sa.com]
Subject: Re: MaxPermSize / Threads
So, while I am not saying that there are not circumstances where a 2 GB
Heap is justified, it is still a very high number, and maybe you should
have a look at which application really needs so much space.
Can you paste the original error from your catalina.out log?
Best
Toni
El 17/05/2010 10:25, Ozgur Ozdemircili escribió:
Hi,
I am having a lot of Java Heap OutOfMemory issues. The first change I did
was to add more memory to JVM:
export CATALINA_OPTS=-XX:MaxPermSize=512m -Xms512m
could you describe compressed object pointers and how implementation will
reduce allocations from JVM heap?thx,
Martin Gainty
__
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Diese Nachricht ist vertraulich. Sollten Sie
From: Martin Gainty [mailto:mgai...@hotmail.com]
Subject: RE: MaxPermSize / Threads
could you describe compressed object pointers and how implementation
will reduce allocations from JVM heap?thx,
It doesn't reduce the number of allocations, but it does reduce the size of
objects, since
Hi all,
Thanks for all the answers. Since the company didn`t have any monitorization
I think the correct decision here would be to start monitoring the tomcat
servers and see what is happening.I really do not have any control on the
programming part I need to find out first what is happening.
Thanks for your help. We are going to upgrade to 6.0.26 and see if
the issue goes away. I will update next week with the status of the
issue.
On Mon, May 17, 2010 at 9:45 AM, Konstantin Kolinko
knst.koli...@gmail.com wrote:
2010/5/17 Richard Sayre richardsa...@gmail.com:
Hi,
Lately in my
On 17/05/2010 14:43, Perez Manglano, Moises wrote:
Hello.
I´m trying to redirect to a URL that includes ñ using
response.sendRedirect, but it parses wrongly this kind of character; I´ve
tried it using URLEncoder and differents encondings (UTF-8,UTF-16,etc).
What have you tried, and what
On 17/05/2010 14:40, Ozgur Ozdemircili wrote:
Hi all,
Thanks for all the answers. Since the company didn`t have any
monitorization I think the correct decision here would be to start
monitoring the tomcat servers and see what is happening.I really do not
have any control on the programming
I´ve tried this:
-- response.sendRedirect (www.coruña.es); -- The result in the web browser
is: www.coru%f1.es
-- response.sendRedirect (URLEncoder.encode(www.coruña.es), UTF-8); --
The result in the web browser is: www.coru%c3%b1a.es.
-- response.sendRedirect
2010/5/17 Perez Manglano, Moises moises.per...@t-systems.es:
I´ve tried this:
-- response.sendRedirect (www.coruña.es); -- The result in the web
browser is: www.coru%f1.es
-- response.sendRedirect (URLEncoder.encode(www.coruña.es), UTF-8); --
The result in the web browser is:
The Travel Assistance Committee is now taking in applications for those
wanting to attend ApacheCon North America (NA) 2010, which is taking place
between the 1st and 5th November in Atlanta.
The Travel Assistance Committee is looking for people who would like to be
able to attend ApacheCon, but
Hi,
It happens when there is a peak of requests.
Here is a part of catalina:
*GRAVE: El Servlet.service() para servlet servlstart lanzó una excepción*
*java.lang.OutOfMemoryError: Java heap space*
* **at java.util.HashMap.init(HashMap.java:209)*
* **at java.util.HashSet.init(HashSet.java:86)*
*
On Mon, May 17, 2010 at 10:39 AM, Perez Manglano, Moises
moises.per...@t-systems.es wrote:
I´ve tried this:
-- response.sendRedirect (www.coruña.es); -- The result in the web
browser is: www.coru%f1.es
Interesting, because if you ask JavaScript to decode %F1, you get an error:
From: Ozgur Ozdemircili [mailto:ozgur.ozdemirc...@gmail.com]
Subject: Re: MaxPermSize / Threads
You can see the server giving error every 3-4 minutes until it dies.
By it dies, do you mean you have to restart Tomcat?
Turn on GC logging (-verbose:gc) and use a heap profiler to see if you
Hi, this seems to be a FAQ, but I could not find a solution for Tomcat 6:
We want to keep property files out of war files. Where should we put the
property files to access them from the web app via
Class.getResourceAsStream() ?
For JBoss one would simply drop them into the server conf folder,
This server was just an example. I have to fix my code to redirect to any URL
that may contain ñ or tildes, because this is a field than any user can fill
in a web form.
Thanks for your reply.
Best regards.
-Mensaje original-
De: Konstantin Kolinko [mailto:knst.koli...@gmail.com]
One thing that happened on a system I was working on here, was that we saw
OOMs and yet the GC stats showed we had plenty of free heap space, which
didn't make sense. The problem turned out to be that there was a memory
leak at the native level where the JVM couldn't see it and had no control
Isn't ${catalina.home}/lib a place that should work with the default
catalia.properties?
Pete
Juergen Weber webe...@gmail.com wrote on 05/17/2010 09:14:01 AM:
Hi, this seems to be a FAQ, but I could not find a solution for Tomcat 6:
We want to keep property files out of war files. Where
I'm a bit confused about what the deployOnStartup setting is supposed to
do, especially when it's set to false.
The basic question is, what is the purpose of this setting? It would appear
that if you set it to false, then applications can only be started by
being hot-deployed, which seems rather
2010/5/17 peter_f...@blm.gov:
There's a couple of places in documentation (online, and also in the
O'Reilly book) where it says you shouldn't have hot-deployment AND
deployOnStart enabled because it can result in applications being deployed
twice
1. For what Tomcat version?
2. Where online?
On 17.05.2010 17:14, Juergen Weber wrote:
Hi, this seems to be a FAQ, but I could not find a solution for Tomcat 6:
We want to keep property files out of war files. Where should we put the
property files to access them from the web app via
Class.getResourceAsStream() ?
For JBoss one would
From: peter_f...@blm.gov [mailto:peter_f...@blm.gov]
Subject: Misunderstanding deployOnStartup actions
I'm a bit confused about what the deployOnStartup setting is
supposed to do, especially when it's set to false.
It defers webapp deployment until after the container is up and running.
On 17/05/2010 16:56, peter_f...@blm.gov wrote:
I'm a bit confused about what the deployOnStartup setting is supposed to
do, especially when it's set to false.
It controls if apps are deployed when Tomcat starts.
The basic question is, what is the purpose of this setting? It would appear
Oops, forgot to say. I'm on 6.0.26. The online documentation I read is at:
http://tomcat.apache.org/tomcat-6.0-doc/config/host.html#Automatic%20Application%20Deployment
...which is very clear about what happens with deployOnStartup=true but
as far as I can see gives no details about what's
Notes inline...
Caldarale, Charles R chuck.caldar...@unisys.com wrote on 05/17/2010
10:11:47 AM:
From: peter_f...@blm.gov [mailto:peter_f...@blm.gov]
Subject: Misunderstanding deployOnStartup actions
I'm a bit confused about what the deployOnStartup setting is
supposed to do,
On 17/05/2010 16:56, peter_f...@blm.gov wrote:
I'm a bit confused about what the deployOnStartup setting is supposed to
do, especially when it's set to false.
The basic question is, what is the purpose of this setting? It would appear
that if you set it to false, then applications can only
On 17.05.2010 18:05, Rainer Jung wrote:
On 17.05.2010 17:14, Juergen Weber wrote:
Hi, this seems to be a FAQ, but I could not find a solution for Tomcat 6:
We want to keep property files out of war files. Where should we put the
property files to access them from the web app via
You would have to process domain name and the rest of the URL separately.
2010/5/17 Perez Manglano, Moises moises.per...@t-systems.es:
This server was just an example. I have to fix my code to redirect to any URL
that may contain ñ or tildes, because this is a field than any user can
fill
Mark Thomas ma...@apache.org wrote on 05/17/2010 10:12:20 AM:
On 17/05/2010 16:56, peter_f...@blm.gov wrote:
I'm a bit confused about what the deployOnStartup setting is supposed
to
do, especially when it's set to false.
It controls if apps are deployed when Tomcat starts.
The basic
On 17/05/2010 17:33, peter_f...@blm.gov wrote:
Mark Thomas ma...@apache.org wrote on 05/17/2010 10:12:20 AM:
Not pointless. It limits deployed apps to *only* those defined in
server.xml.
Ok - so if I want my app to start I have to place the context element in
server.xml. I would have
To clarify what I'm up to here - we have an in-house doc that suggests
switching off autoDeploy and deployOnStartup on production systems, and
I've been testing those recommendations on an experimental setup. What the
in-house doc forgets to say is what you've explained here (and which
answers my
On 17/05/2010 17:48, peter_f...@blm.gov wrote:
To clarify what I'm up to here - we have an in-house doc that suggests
switching off autoDeploy and deployOnStartup on production systems, and
Does it explain why it makes this suggestion?
I've been testing those recommendations on an
Pid p...@pidster.com wrote on 05/17/2010 10:55:06 AM:
On 17/05/2010 17:48, peter_f...@blm.gov wrote:
To clarify what I'm up to here - we have an in-house doc that suggests
switching off autoDeploy and deployOnStartup on production systems, and
Does it explain why it makes this suggestion?
Hi Pid, et al:
Things are curiouser and curiouser. I decided to deploy the struts blank app
after starting tomcat with startup.sh.
Well there is no memory leak after undeploy and redeploy. If I start tomcat
with jsvc, I get a memory leak.
This is the minimal init script I used to start the
On 17/05/2010 18:14, peter_f...@blm.gov wrote:
Pid p...@pidster.com wrote on 05/17/2010 10:55:06 AM:
On 17/05/2010 17:48, peter_f...@blm.gov wrote:
To clarify what I'm up to here - we have an in-house doc that suggests
switching off autoDeploy and deployOnStartup on production systems, and
On 17/05/2010 18:36, Mark Shifman wrote:
Hi Pid, et al:
Things are curiouser and curiouser. I decided to deploy the struts blank app
after starting tomcat with startup.sh.
Well there is no memory leak after undeploy and redeploy. If I start tomcat
with jsvc, I get a memory leak.
This is
Well, it's the usual thing - you can have a system that's completely open
but gets cratered because some duffer clicked the wrong button. Or you can
have a system that's 100% secure, but nobody can use it because it's 100%
secure. Or you can have something that's secure enough to protect from
The only 100% secure system is one that is turned off.
-Original Message-
From: peter_f...@blm.gov [mailto:peter_f...@blm.gov]
Sent: Monday, May 17, 2010 1:09 PM
To: Tomcat Users List
Subject: Re: Misunderstanding deployOnStartup actions
Well, it's the usual thing - you can have a
From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com]
Subject: RE: Misunderstanding deployOnStartup actions
The only 100% secure system is one that is turned off.
Not sure even that is sufficient...
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
Unplugged then?
With today's wake-on-lan, always on NIC connectors, I can see what you
mean.
-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com]
Sent: Monday, May 17, 2010 1:14 PM
To: Tomcat Users List
Subject: RE: Misunderstanding deployOnStartup actions
but the following forums seem dead.
I am horrified by the following code causing a untime exception because I want
to make sure hibernate session is closed but even though the session is null,
it appears to be open still?
finally {
if(session!=null){
Caldarale, Charles R chuck.caldar...@unisys.com wrote on 05/17/2010
12:14:21 PM:
From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com]
Subject: RE: Misunderstanding deployOnStartup actions
The only 100% secure system is one that is turned off.
Not sure even that is sufficient...
From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com]
Subject: RE: Misunderstanding deployOnStartup actions
Unplugged then?
Unplugged and encased in lead, perhaps. Preferably in a dark cellar, with no
stairs, in the bottom of a locked filing cabinet stuck in a disused lavatory
with a
2010/5/3 Mark Shifman mark.shif...@yale.edu:
Using jmap -histo pid, I can watch
com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl, etc increase in number
(...)
The JAXBContext instance is created with a singleton that is an enum (using
Josh Block's pattern):
The cause might be
From: Yucca Nel [mailto:yucca...@live.co.za]
Subject: help with hibernate (Iknow it's off topic)
I am horrified by the following code causing a untime exception
Someone call Stephen Hawking so we can get details about untime...
I want to make sure hibernate session is closed but even
On 5/17/2010 2:19 PM, peter_f...@blm.gov wrote:
Caldarale, Charles Rchuck.caldar...@unisys.com wrote on 05/17/2010
12:14:21 PM:
From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com]
Subject: RE: Misunderstanding deployOnStartup actions
The only 100% secure system is one that is turned
give it to transocean..they need a disk to record their BOP safety feature
operational checklist procedures log then use that disk to plug a very large
leak
Martin
__
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Diese
David kerber dcker...@verizon.net wrote on 05/17/2010 12:43:17 PM:
On 5/17/2010 2:19 PM, peter_f...@blm.gov wrote:
Caldarale, Charles Rchuck.caldar...@unisys.com wrote on 05/17/2010
12:14:21 PM:
From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com]
Subject: RE: Misunderstanding
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Karthik,
On 5/13/2010 3:45 AM, Karthik Nanjangude wrote:
Question : My web application uses href css based image's
for transferring the request from 1 page to another The problem is
UserVisitor is clicking the image based href MULTIPLE
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Mark,
I know you posted this a while ago, but I have some comments:
On 5/4/2010 9:10 AM, Mark Shifman wrote:
public T T getNextElement(String theElement, String elementAfter,
Class Tclazz) {
String elname = ;
T
On 17/05/2010 21:07, Christopher Schultz wrote:
Karthik,
On 5/13/2010 3:45 AM, Karthik Nanjangude wrote:
Question : My web application uses href css based image's
for transferring the request from 1 page to another The problem is
UserVisitor is clicking the image based href
Rainer,
I wasn't aware of this library, but it looks very handy. Currently I a
properties file in my WAR file. Being able to make changes to an external
file with fallback to this one would be good. My questions where one might
put that external file where it could be found by a servlet. The
84 matches
Mail list logo