Max Memory Reading

2006-10-13 Thread Alan Flisch
Hi, I was having some problems with perm gen space on one of our tomcat instances and decided to increase the perm gen size and review the JAVA_OPTS settings in general when I noticed something curious. No settings are currently made so its just running with default values, but the manager

Re: Max Memory Reading

2006-10-13 Thread Lintang JP
maybe the value for environment variables called JAVA_OPTS equals those values ? try to echo $JAVA_OPTS and see if theres any value. On 10/13/06, Alan Flisch [EMAIL PROTECTED] wrote: Hi, I was having some problems with perm gen space on one of our tomcat instances and decided to increase

Re: Max Memory Reading

2006-10-13 Thread Alan Flisch
Already checked that, it's not in the environment and not set in either startup.sh or catalina.sh. On Fri, 2006-10-13 at 14:17 +0700, Lintang JP wrote: maybe the value for environment variables called JAVA_OPTS equals those values ? try to echo $JAVA_OPTS and see if theres any value. On

Re: Max Memory Reading

2006-10-13 Thread Pascal Alberty
/etc/init.d/tomcat5 ? Check for -Xms and -Xmm options On 10/13/06, Alan Flisch [EMAIL PROTECTED] wrote: Already checked that, it's not in the environment and not set in either startup.sh or catalina.sh. On Fri, 2006-10-13 at 14:17 +0700, Lintang JP wrote: maybe the value for environment

context.xml problem

2006-10-13 Thread Andre Prasetya
Hi All Adding my yesterday problem, I found this at localhost_log_comium_mt 2006-10-13 14:54:33 StandardContext[/comium_mt]Error configuring application listener of class com.ricochet.connector.im3.MTQueueProcessor java.lang.ClassNotFoundException: com.ricochet.connector.im3.MTQueueProcessor

Re: Max Memory Reading

2006-10-13 Thread Alan Flisch
Good idea, but nothing set there either. The fact it's such an odd number is another perplexing issue. On Fri, 2006-10-13 at 09:36 +0200, Pascal Alberty wrote: /etc/init.d/tomcat5 ? Check for -Xms and -Xmm options On 10/13/06, Alan Flisch [EMAIL PROTECTED] wrote: Already checked that,

problems with unpacking ROOT.war

2006-10-13 Thread andrew . w . cooke
Hi there, We have been finding it difficult to persuade tomcat (5.5.12 and 5.5.17) to unpack a ROOT.war file, either when starting up tomcat from scratch, or hot-deploying. We *were* able to get tomcat to expand the war file if it contains a META-INF directory containing a context.xml file.

Re: Apache2.x + Apache Tomcat5.x + mod_jk + virtual host on windows XP

2006-10-13 Thread sam
on the same line.. i can access my jsp-examples frm http://localhost/jsp-examples.. but whn i pass my IP address to frnds (whn i m connected to the internet)...it shows page not available/requested page is not available... i m using tomcat 5.5 anf apache 2.2.3... the configuration seems OK to

Re: Tomcat Embedded and Server.xml

2006-10-13 Thread Miguel Correia Ricardo
But, do you use server.xml to configure tomcat embedded? For example, for the connector ports? If so, how may I ask? Best regards, Miguel On 10/12/06, Andre Prasetya [EMAIL PROTECTED] wrote: Hi Miguel, I m using tomcat embedded but i still use server.xml too -Andre- On 10/10/06, Miguel

Re: Max Memory Reading

2006-10-13 Thread Alan Flisch
Thanks, I suspected that, but couldn't find a reference in any JVM docs. Do you have a reference I could look at so I could better understand what is going on? In order for me to set an appropriate larger perm gen size, I suppose I'd need to know what it currently is. I seem to remember it is

Re: Max Memory Reading

2006-10-13 Thread Leon Rosenberg
def perm size is 64Mb On 10/13/06, Alan Flisch [EMAIL PROTECTED] wrote: Thanks, I suspected that, but couldn't find a reference in any JVM docs. Do you have a reference I could look at so I could better understand what is going on? In order for me to set an appropriate larger perm gen size, I

Re: Tomcat Embedded and Server.xml

2006-10-13 Thread Andre Prasetya
Yes I use server.xml to configure the comcat embedded, and only for connector ports, I attach the server.xml, hopefully its usefull for you.On 10/13/06, Miguel Correia Ricardo [EMAIL PROTECTED] wrote: But, do you use server.xml to configure tomcat embedded? For example,for the connector ports? If

Re: Max Memory Reading

2006-10-13 Thread Alan Flisch
Thanks. Found a reference too: http://java.sun.com/j2se/1.5.0/docs/guide/vm/gc-ergonomics.html Going to set the following... -server -Xmx2000m -XX:MaxPermSize=256m On Fri, 2006-10-13 at 12:38 +0200, Leon Rosenberg wrote: def perm size is 64Mb On 10/13/06, Alan Flisch [EMAIL PROTECTED]

Re: Max Memory Reading

2006-10-13 Thread Leon Rosenberg
just as note Xmx2000m works on 64bit vm only and you can use g instead of 1000m - -Xmx2g regards Leon P.S. You should set your ms=mx, saves time :-) On 10/13/06, Alan Flisch [EMAIL PROTECTED] wrote: Thanks. Found a reference too:

Tomcat 3.3.1a Hangs

2006-10-13 Thread Himanshu Thube
Hello All, We have a problem in our production system. Following is our environment. Tomcat 3.3.1a AIX 5.3 IBM JDK 1.3.1 Apache/1.3.28 The only change that we did was changed from AIX 5.1 ML 4 to AIX 5.3 ML5 Tomcat hangs sometimes 5 times a day or sometimes it works fine for a day or two. We

Re: CPU level is not coming back to a normal level

2006-10-13 Thread Pascal Alberty
Any other idea ? Thanks On 10/13/06, Pascal Alberty [EMAIL PROTECTED] wrote: On 10/12/06, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Pascal Alberty Subject: CPU level is not coming back to a normal level When I'm

Re: CPU level is not coming back to a normal level

2006-10-13 Thread David Smith
I think you are going to have to get a profiler going to diagnose this. See where the JVM is spending it's time when the CPU goes high like this. Also try using the logs to see if it's coincident on specific requests or other events in tomcat. --David Pascal Alberty wrote: Any other idea

Re: CPU level is not coming back to a normal level

2006-10-13 Thread Leon Rosenberg
On 10/13/06, Pascal Alberty [EMAIL PROTECTED] wrote: I have set up GC information. While XHTML rendering, there is one Full GC which spent 0.2 sec. All other GC operations are taking less then 0.01 sec which seems normal. When dumping the JVM through a kill -3, I can see threads working on

Re: Max Memory Reading

2006-10-13 Thread Alan Flisch
I thought you were safe up to 4000m (in practice a little lower) for the 32 bit VM. Regards, Alan On Fri, 2006-10-13 at 13:04 +0200, Leon Rosenberg wrote: just as note Xmx2000m works on 64bit vm only and you can use g instead of 1000m - -Xmx2g regards Leon P.S. You should set your

Re: Max Memory Reading

2006-10-13 Thread Andrew Miehs
Nope - the 32Bit JVM can only deal with about 1.5GB Ram Andrew On 13/10/2006, at 2:51 PM, Alan Flisch wrote: I thought you were safe up to 4000m (in practice a little lower) for the 32 bit VM. Regards, Alan - To start

Re: Tomcat Embedded and Server.xml

2006-10-13 Thread Mark Miller
I am using embedded tomcat and I do not use server.xml. Unfortunately, I am away from home until Sunday. I will give you more info then. - Mark On 10/13/06, Miguel Correia Ricardo [EMAIL PROTECTED] wrote: But, do you use server.xml to configure tomcat embedded? For example, for the connector

Re: Tomcat Embedded and Server.xml

2006-10-13 Thread Miguel Correia Ricardo
Thanks. On 10/13/06, Andre Prasetya [EMAIL PROTECTED] wrote: Yes I use server.xml to configure the comcat embedded, and only for connector ports, I attach the server.xml, hopefully its usefull for you. On 10/13/06, Miguel Correia Ricardo [EMAIL PROTECTED] wrote: But, do you use server.xml

Re: Max Memory Reading

2006-10-13 Thread Christopher Schultz
Leon, The default memory values depends on your machine (processor speed and count, total amount of memory) and are guessed by the vm (if not explicitely specified) upon application start. Times of 64Mb max memory are long over now. Really? Seems like 32-bit Sun JVM on Sparc has exactly 64MB

Re: Max Memory Reading

2006-10-13 Thread Leon Rosenberg
Hmm, I'm not familiar with limitations on solaris. On linux 32bit VM can allocate 1.6-1.8 GB depending on vendor (1.6 for sun-jdk). On the other side, if you are on 64bit OS (and you probably are, or how could you adress 16GB otherwise), why not using 64bit jdk? regards Leon On 10/13/06, Alan

Re: Max Memory Reading

2006-10-13 Thread Leon Rosenberg
Christopher, unfortunately google is not your friend in this case and the document seems outdated :-) http://java.sun.com/docs/hotspot/gc5.0/ergo5.html n the J2SE platform version 5.0 a class of machine referred to as a server-class machine has been defined as a machine with 2 or more

Re: Problem with HttpSessionListener

2006-10-13 Thread José Roberto Motta Garcia
No one was asking for cross-application scoping. Hi chuck, do u know how to do that? It's what I'm trying to do, to get a cross-app scope for customized management. Tks Jose Roberto the proper way to access your webapps info is getServletContext() to get the context first..once you

Re: CPU level is not coming back to a normal level

2006-10-13 Thread Pascal Alberty
There is also the following one, but in wait mode: Java2D Disposer daemon prio=1 tid=0x083a5858 nid=0x7443 in Object.wait() [0x853ff000..0x853ff1c0] at java.lang.Object.wait(Native Method) - waiting on 0x92d654d0 (a java.lang.ref.ReferenceQueue$Lock) at

Re: Max Memory Reading

2006-10-13 Thread Alan Flisch
It could actually be a 64 bit JVM (I didn't install it) although I suspect not, but as I have no need to push the memory up any further just now, I'll leave addressing that till later. I'll maybe just make it 1600m or something for now as that should be more than adequate. The server isn't

Re: Tomcat Embedded and Server.xml

2006-10-13 Thread Miguel Correia Ricardo
Oh, well... I'm reading the connector ports from the server.xml with a my own custom SAXParser... Didn't see anyother way of doing it... Apreciate all the help. On 10/13/06, Mark Miller [EMAIL PROTECTED] wrote: I am using embedded tomcat and I do not use server.xml. Unfortunately, I am away

RE: Max Memory Reading

2006-10-13 Thread Caldarale, Charles R
From: Andrew Miehs [mailto:[EMAIL PROTECTED] Subject: Re: Max Memory Reading Nope - the 32Bit JVM can only deal with about 1.5GB Ram That's a Windows, not JVM, limitation. The virtual memory setup is different on Solaris, so higher values are possible. - Chuck THIS COMMUNICATION MAY

RE: Max Memory Reading

2006-10-13 Thread Caldarale, Charles R
From: Alan Flisch [mailto:[EMAIL PROTECTED] Subject: Re: Max Memory Reading I thought you were safe up to 4000m (in practice a little lower) for the 32 bit VM. Depends on the OS. For Windows, the limit is around 1.5 - 1.6 GB, since the JVM code, heap, several ancilliary DLLs, and other

RE: Max Memory Reading

2006-10-13 Thread Caldarale, Charles R
From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Subject: Re: Max Memory Reading On the other side, if you are on 64bit OS (and you probably are, or how could you adress 16GB otherwise), why not using 64bit jdk? Did Solaris 5.9 have a 64-bit version? It's a bit on the old side, so I doubt

RE: Max Memory Reading

2006-10-13 Thread Caldarale, Charles R
From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Subject: Re: Max Memory Reading unfortunately google is not your friend in this case and the document seems outdated :-) http://java.sun.com/docs/hotspot/gc5.0/ergo5.html Why do you think it's outdated? What's described is what the current

RE: Max Memory Reading

2006-10-13 Thread Alan Flisch
It seems to be contradicted by this document http://java.sun.com/j2se/1.5.0/docs/guide/vm/gc-ergonomics.html and by my experience of seeing a near 1GB heap with no -Xmx option set anywhere. It's a little on the confusing side! On Fri, 2006-10-13 at 09:31 -0500, Caldarale, Charles R wrote:

RE: Max Memory Reading

2006-10-13 Thread Caldarale, Charles R
From: Alan Flisch [mailto:[EMAIL PROTECTED] Subject: RE: Max Memory Reading It seems to be contradicted by this document http://java.sun.com/j2se/1.5.0/docs/guide/vm/gc-ergonomics.html and by my experience of seeing a near 1GB heap with no -Xmx option set anywhere. Maybe I'm confused by

RE: Max Memory Reading

2006-10-13 Thread Alan Flisch
The document Leon thought was outdated was this one - http://java.sun.com/docs/hotspot/gc5.0/gc_tuning_5.html#0.0.0.%20Total% 20Heap%7Coutline - which also relates to 5.0! I'm guessing from the evidence that this doc is simply wrong. Regards, Alan On Fri, 2006-10-13 at 09:41 -0500,

RE: Large File (100MB+) Upload Issue

2006-10-13 Thread Stryjewski Lindsey
Increasing logging (via the verbosity attribute) doesn't seem to do anything. Is there another way to get catalina.out to give me something? Regards, Lindsey -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, October 12, 2006 3:46 PM To: Tomcat Users List

RE: Large File (100MB+) Upload Issue

2006-10-13 Thread Stryjewski Lindsey
Besides doing System.outs. I'm trying to see if I can debug without having to redeploy code and interrupt service. Regards, Lindsey -Original Message- From: Stryjewski Lindsey [mailto:[EMAIL PROTECTED] Sent: Friday, October 13, 2006 11:02 AM To: Tomcat Users List Subject: RE: Large

Re: Retrieving tomcat realm from org.apache.catalina.Server object

2006-10-13 Thread Li
I dont see any problem, In fact, server.findServices() always returns an empty array of services. But my server.xml does define a Catalina service. try to use findServices() and get first service of the service array and see if still null ... On 10/13/06, Sathija Pavuluri [EMAIL PROTECTED]

Re: Retrieving tomcat realm from org.apache.catalina.Server object

2006-10-13 Thread Sathija Pavuluri
I've tried that too. findServices() returns an array of length 0. I dont see any problem, In fact, server.findServices() always returns an empty array of services. But my server.xml does define a Catalina service. try to use findServices() and get first service of the service array and see

Re: Retrieving tomcat realm from org.apache.catalina.Server object

2006-10-13 Thread Li
is the server instance ok? On 10/13/06, Sathija Pavuluri [EMAIL PROTECTED] wrote: I've tried that too. findServices() returns an array of length 0. I dont see any problem, In fact, server.findServices() always returns an empty array of services. But my server.xml does define a Catalina

Re: Retrieving tomcat realm from org.apache.catalina.Server object

2006-10-13 Thread Sathija Pavuluri
yes, it does look ok except for the findServices(). In fact, as I mentioned earlier i tried calling server.getGlobalNamingResources(), getPort(), getInfo() on the server and they all seem to return the right stuff. Its just the services. I've set privileged=true on my webapp context. Can't

Perfect, provided 'virgin' install on XP- ClassNotFoundException on 'used' 2K...

2006-10-13 Thread Rico
Hello Everyone, On Windows 2000 where over the past couple of years I had installed Tomcat4 and Tomcat4.1, running Tomcat5.0.28 as a service now gives: == ERROR reading D:\jakarta-tomcat-5.0.28\conf\server.xml At Line 24 /Server/Listener/

Re: Max Memory Reading

2006-10-13 Thread Leon Rosenberg
On 10/13/06, Alan Flisch [EMAIL PROTECTED] wrote: The document Leon thought was outdated was this one - http://java.sun.com/docs/hotspot/gc5.0/gc_tuning_5.html#0.0.0.%20Total% 20Heap%7Coutline - which also relates to 5.0! I'm guessing from the evidence that this doc is simply wrong. yes

Re: Max Memory Reading

2006-10-13 Thread joon yoo
is it a windows limitation or an intel x86 limitation? i.e., if i had installed linux or BSD instead of win 2000, would i have been better off memory management wise? joon On 10/13/06, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Andrew Miehs [mailto:[EMAIL PROTECTED] Subject: Re:

load files on tomcat

2006-10-13 Thread harl3kin
hello alltogether, i have a problem with accessing files deployed on tomcat. I want to access an image which is stored in a graphics folder right below the WEB-INF folder. I read that the tomcat-context has its start path on the classes folder. So what i did to retrieve the image was: Image

RE: Max Memory Reading

2006-10-13 Thread Caldarale, Charles R
From: joon yoo [mailto:[EMAIL PROTECTED] Subject: Re: Max Memory Reading is it a windows limitation or an intel x86 limitation? Windows, due to limiting an individual process' virtual space to 2 GB. (Some versions of Windows Server allow configuration of a 3 GB process space, but that

Re: Problem with HttpSessionListener

2006-10-13 Thread José Roberto Motta Garcia
Hi chuck, do u know how to do that? It's what I'm trying to do, to get a cross-app scope for customized management. If all you need are objects common to all web apps, classes placed in shared/lib will suffice. Do you mean a servlet? Wouldn't every app instantiate its own object if

Re: load files on tomcat

2006-10-13 Thread José Roberto Motta Garcia
Are u trying to access this image from a class or from a JSP? Please correct me people, but the root path to JSP files is TOMCAT_HOME/webapps/YOUR_APP_HOME. JR harl3kin wrote: hello alltogether, i have a problem with accessing files deployed on tomcat. I want to access an image which is

Re: load files on tomcat

2006-10-13 Thread David Smith
The problem is the current directory is the startup directory for tomcat. In a webapp that might be running on several different installations, the current working directory is a moving target. Given this is always used from an exploded webapp and not a .war file, you could use

Re: Retrieving tomcat realm from org.apache.catalina.Server object

2006-10-13 Thread Li
Is there any error info in log files? Would it be permission problem? ... make sure all needed tomcat libs are readable by your webapp ... On 10/13/06, Sathija Pavuluri [EMAIL PROTECTED] wrote: yes, it does look ok except for the findServices(). In fact, as I mentioned earlier i tried calling

RE: Tomcat using MS SQL2000 Named Instance

2006-10-13 Thread Dan Decker
Karen - Thanks for your help. The double backslash is now working. I had to upgrade the SQL 2000 named instance to SP4. Dan Decker Microsoft Dynamics GP Developer www.Business-Computers.com (303)499-2039 -Original Message- From: Karen Koch [mailto:[EMAIL PROTECTED] Sent: Thursday,

RE: Problem with HttpSessionListener

2006-10-13 Thread Caldarale, Charles R
From: José Roberto Motta Garcia [mailto:[EMAIL PROTECTED] Subject: Re: Problem with HttpSessionListener Do you mean a servlet? No, just Java classes. Wouldn't every app instantiate its own object if this class is a simple one? Only if they do a new; you can use static fields and

Session lost when switching from https to http in Tomcat 4.1

2006-10-13 Thread Dosu Mahat
Greetings!! all. I have a configuration where i use Apache in front of JBoss(which uses the tomcat4.1). Recently, we set up http/https switching using mod rewrite in Apache, to separate the secure content from insecure in our web app. Problem that came up is that if session starts in

Re: Retrieving tomcat realm from org.apache.catalina.Server object

2006-10-13 Thread Sathija Pavuluri
Nope, nothing in the logs. But I have a feeling its something to do with permissions. I've given privilged access to the webapp, cant think of anything else. Another weird thing is, whether I set the context's privileged=true or false it behaves the same way I am using Tomcat 5.5 , has anything

Re: Retrieving tomcat realm from org.apache.catalina.Server object

2006-10-13 Thread Li
where you set your web context parameter? On 10/14/06, Sathija Pavuluri [EMAIL PROTECTED] wrote: Nope, nothing in the logs. But I have a feeling its something to do with permissions. I've given privilged access to the webapp, cant think of anything else. Another weird thing is, whether I set

Re: load files on tomcat

2006-10-13 Thread Mark Miller
, you could use ServletContext.getRealPath( ). That will return the absolute path to the file, but only if the webapp isn't packed up as .war. --David Why is this the case? Doesn't Tomcat extract to war to a webapp/warname folder when it first accesses it? - Mark

Re: Retrieving tomcat realm from org.apache.catalina.Server object

2006-10-13 Thread Sathija Pavuluri
in the ${CATALINA_HOME}/webapps/myapp/META-INF/context.xml i've also tried ${CATALINA_HOME}/conf/Catalina/localhost/myapp.xml these places seem to be where tomcat 5.5 expects to find the Context element. i had it in the server.xml at one point, but tomcat 5.5 doesnt recommend that. where

Tomcat CPU Profiler

2006-10-13 Thread Jsherwood
Hello, What is the best program to use to profile the cpu used by tomcat(Pref an open source one). We run tomcat 5.x on a Win2003 Server and are having CPU problems. We need to find out where the cpu is being used the most(class or method) and the more details the better. We program in

Re: Higher level context

2006-10-13 Thread Mark Thomas
[EMAIL PROTECTED] wrote: How can I get an higher level context than ServletContext in a way that gives me all web apps running on Tomcat, like Manager? Take a look at the source for the manager servlet and see how it does it. Mark

xampp--tomcat, java performance

2006-10-13 Thread boonting
Hello, Anybody work with xampp--tomcat, mysql, apache? If i post into wrong forum please guide me. If my question is confusing, please let me know, i will try my best to explain. Recently I am facing very weird problem. My Company server attacked by virus and hijacked by hacker. I have

Writing a text file back to browser from a servlet

2006-10-13 Thread David Kerber
I'm trying to do something that seems like it should be very easy, but can't get it to work: sending a .txt file back to the user's browser so they can save it to their local hard disk. I am having no trouble creating the file and writing it to a temporary place on the server, but can't