Re: ubuntu 9.10 tomcat6 security manager blocks access to system.properties

2009-12-22 Thread Konstantin Kolinko
2009/12/23 Mike Power : > This is not useful information I have read this. > > It does not  answer my specific question. > Is it or is it no wrong for a read request via > java.lang.System.getProperties to trigger an access request for both read > and write permissions? > > > Konstantin Kolinko wro

Re: Http session lost b/w struts actions on Linux but not in Win

2009-12-22 Thread Ron McNulty
Hi Johan Two JSESSIONID values does look odd. I've seen problems like this when another server running a Java J2EE servlet container incorrectly had its JSESSIONID cookie scope set to the whole domain, rather than scoped to the server and application. In my case it was a SAP web server, and th

Re: ubuntu 9.10 tomcat6 security manager blocks access to system.properties

2009-12-22 Thread Mike Power
This is not useful information I have read this. It does not answer my specific question. Is it or is it no wrong for a read request via java.lang.System.getProperties to trigger an access request for both read and write permissions? Konstantin Kolinko wrote: 2009/12/23 Mike Power :

Re: ubuntu 9.10 tomcat6 security manager blocks access to system.properties

2009-12-22 Thread Konstantin Kolinko
2009/12/23 Mike Power : > I am not sure if I am reading the stack trace right.  I have a war that > is trying to read its configuration from the system.properties. > > It seems that tomcat6 is apply read write checks on calls to > java.lang.System.getProperties.  Am I observing the details correctl

ubuntu 9.10 tomcat6 security manager blocks access to system.properties

2009-12-22 Thread Mike Power
I am not sure if I am reading the stack trace right. I have a war that is trying to read its configuration from the system.properties. It seems that tomcat6 is apply read write checks on calls to java.lang.System.getProperties. Am I observing the details correctly? That seems to be the wrong pe

[SpotVogue.com]Nice Wedding Dresses On sale, Stunning Selection Of Styles

2009-12-22 Thread blackcookie001
[SpotVogue.com]Nice Wedding Dresses On sale, Stunning Selection Of Styles SpotVogue.com provides the best [url=http://www.spotvogue.com]china products[/url] online and [url=http://www.spotvogue.com]china wholesale[/url] service. Now the [url=http://www.spotvogue.com]china products[/url] offered

Error running two tomcats in same cluster on same Windows box

2009-12-22 Thread John Tangney
We run two tomcats on the same Windows Server 2008 box. They have their server.xml tweaked so that they use unique ports. Here's a diff: $ diff server.xml /cygdrive/c/Program\ Files/Apache\ Software\ Foundation/Tomcat\ 6.0/conf/server.xml 22c22 < --- > 67c67 < --- >re

Re: Every couple hours, Tomcat stops - FIXED

2009-12-22 Thread André Warnier
Bruce wrote: Juha, The problem is fixed. My customer's site has been up for 24 hours with no problems. The problem became apparent when I went to the JVM line in localhost:8080/manager/status. That was showing .5 MB free memory. I went to the configure Tomcat. I clicked on the Java tab. Se

Re: j_security_check not working with flash

2009-12-22 Thread vpapado
Hello, Indeed that was it! I moved the flash into another folder that is not protected, and now it works. Thanks you! Bye vpapado wrote: > > Hello, > > I have a problem authenticating my users with j_security_check > interworking with a flash on my login.jsp page. > > Here is how things go

Re: Every couple hours, Tomcat stops - FIXED

2009-12-22 Thread Bruce
Juha, The problem is fixed. My customer's site has been up for 24 hours with no problems. The problem became apparent when I went to the JVM line in localhost:8080/manager/status. That was showing .5 MB free memory. I went to the configure Tomcat. I clicked on the Java tab. Set the "Initia

Re: TomCat 6 performance issues

2009-12-22 Thread anthonyvierra
Is there any other hardware/software between tomcat and the checking box? Load balancer, app firewall ? On 12/22/09, DOrlov wrote: > > > > anthonyvierra wrote: >> >> Has the issue come from a single server? Or do you have a second >> machine producing the same result? >> >> > > I have another pro

Re: TomCat 6 performance issues

2009-12-22 Thread DOrlov
anthonyvierra wrote: > > Has the issue come from a single server? Or do you have a second > machine producing the same result? > > I have another production box with different code, but same TomCat configuration. And time to time I have the same issues. TomCat server side code on another bo

Re: TomCat 6 performance issues

2009-12-22 Thread anthonyvierra
Has the issue come from a single server? Or do you have a second machine producing the same result? On 12/21/09, DOrlov wrote: > > Hello. > I have TomCat server on production and have from 80 up to 400 requests per > second. > > In server.xml I have next connector description: > >

Re: TomCat 6 performance issues

2009-12-22 Thread Pid
On 22/12/2009 12:55, Rainer Jung wrote: On 22.12.2009 13:26, DOrlov wrote: Rainer Jung-3 wrote: You can add "%D" to the pattern for the omcat access log, which will output the response time in milliseconds how Tomcat determined it. Already done for most cases values are 0,1,2 ms Max valu

Re: TomCat 6 performance issues

2009-12-22 Thread Rainer Jung
On 22.12.2009 13:26, DOrlov wrote: Rainer Jung-3 wrote: You can add "%D" to the pattern for the omcat access log, which will output the response time in milliseconds how Tomcat determined it. Already done for most cases values are 0,1,2 ms Max value which I ever find in the log ~ 20 ms

Re: TomCat 6 performance issues

2009-12-22 Thread DOrlov
Rainer Jung-3 wrote: > > > > You can add "%D" to the pattern for the omcat access log, which will > output the response time in milliseconds how Tomcat determined it. > > Already done for most cases values are 0,1,2 ms > Max value which I ever find in the log ~ 20 ms > > -- View this m

Re: TomCat 6 performance issues

2009-12-22 Thread Rainer Jung
On 22.12.2009 13:13, DOrlov wrote: Pid Ster wrote: Looks OK. When you say the response takes 5s, how are you measuring this? Is it sustained, or is it occasional? Is the server heavily loaded at the time - and again how are you measuring that? What else could be happening? E.g. sending

Re: TomCat 6 performance issues

2009-12-22 Thread DOrlov
Pid Ster wrote: > > > Looks OK. > > When you say the response takes 5s, how are you measuring this? > > Is it sustained, or is it occasional? > > Is the server heavily loaded at the time - and again how are you > measuring that? > > What else could be happening? E.g. sending mail from ap

Re: TomCat 6 performance issues

2009-12-22 Thread Rainer Jung
On 22.12.2009 12:58, Pid wrote: On 22/12/2009 11:34, DOrlov wrote: Pid Ster wrote: Any chance you can upgrade to the most recent Tomcat? How much total physical RAM do you have? Examine the heap "jmap -heap", and post the results. I have 8Gb RAM on the machine. PS Old Generation 4

Re: TomCat 6 performance issues

2009-12-22 Thread Pid
On 22/12/2009 11:34, DOrlov wrote: Pid Ster wrote: Any chance you can upgrade to the most recent Tomcat? How much total physical RAM do you have? Examine the heap "jmap -heap", and post the results. I have 8Gb RAM on the machine. PS Old Generation 47.376815763383185% used PS Pe

Re: TomCat 6 performance issues

2009-12-22 Thread DOrlov
Pid Ster wrote: > > Any chance you can upgrade to the most recent Tomcat? > > How much total physical RAM do you have? > > Examine the heap "jmap -heap ", and post the results. > > > I have 8Gb RAM on the machine. Jmap heap: JVM version is 14.3-b01 using thread-local object allocation.

Re: TomCat 6 performance issues

2009-12-22 Thread Pid
On 22/12/2009 10:18, DOrlov wrote: Pid Ster wrote: What about the exact versions of your OS, JVM and Tomcat? Is your OS a 64bit one? Correct, I use 64bit machine. JVM: Java(TM) SE Runtime Environment (build 1.6.0_17-b04) Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01, mixed mode) OS:

Re: Http session lost b/w struts actions on Linux but not in Win

2009-12-22 Thread Johan Thorselius
I here add some info from Firebug which may be significant. 'GET localhost:8080/wap-app/start.action': CookieJSESSIONID=9726CDF4A527E3D98451140AB69EFA2C; JSESSIONID=BEED739340DDD4370C85A9D12917692A 'GET localhost:8080/webdav/images/.../1px.gif': CookieJSESSIONID=BEED739340DDD4370C85A9D12917

Re: Http session lost b/w struts actions on Linux but not in Win

2009-12-22 Thread Johan Thorselius
The issue now boils down to the following a bit strange thing. Any idea why this happens ? - request.getSession() returns an incorrect null on Linux, but on Windows it's OK - under the following circumstances: When using Firebug on Firefox I noted that a corporate common .css references a 1-pixe

Re: TomCat 6 performance issues

2009-12-22 Thread DOrlov
Pid Ster wrote: > > What about the exact versions of your OS, JVM and Tomcat? > Is your OS a 64bit one? > Correct, I use 64bit machine. JVM: Java(TM) SE Runtime Environment (build 1.6.0_17-b04) Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01, mixed mode) OS: [root@ ~]# uname -mrsn Linux 2

Re: TomCat 6 performance issues

2009-12-22 Thread DOrlov
Leon Rosenberg-3 wrote: > > > Hello, > > I have a lot of high performance sites (2000 requests per second and > more) under my 'umbrella' but have never > encountered any performance problems because of the gc logging (yet). > > btw add > -Xloggc: logfilename > to move gc logs into separate

Re: question about Tomcat5.5 getServletContext().getContext(String url);

2009-12-22 Thread Pid
On 22/12/2009 09:13, Peter Chen wrote: Hi, In a JSP file, there is a sentence like this: ServletContext sc = this.getServletContext().getContext("/File"); if(sc == null){ Logger.warn(msg,"Can't get the context of /File."); return; } What's the mean of this sentence? Ask the author o

Re: TomCat 6 performance issues

2009-12-22 Thread Leon Rosenberg
On Tue, Dec 22, 2009 at 9:10 AM, DOrlov wrote: > > > > Leon Rosenberg-3 wrote: >> >> Hello, >> >> you should switch on GC logs and check whether the delays happen at >> the Full GC Time. >> You should also start with Xms = Xmx -> both 6144 (why exactly 6144? :-) >> ). >> >> -verbose:gc >> -XX:+Pri

Re: question about Tomcat5.5 getServletContext().getContext(String url);

2009-12-22 Thread André Warnier
Peter Chen wrote: Hi, In a JSP file, there is a sentence like this: ServletContext sc = this.getServletContext().getContext("/File"); if(sc == null){ Logger.warn(msg,"Can't get the context of /File."); return; } What's the mean of this sentence? Now, I run this application in Tomc

Re: Tomcat 5.5.17 - allowLinking property - symbolic links

2009-12-22 Thread Vishwa. K
Thanks Ingo, Chris, Out of curiosity, I had tried the fake Application or fake docBases root approach mentioned by Ingo. It worked for me on Tomcat 5.5.17 and Windows XP. My fakeApp.xml (context.xml) was : I copied this into the directory: TOMCAT_DIR/conf/Catalina/localhost C:\\temp\\fake

Re: Tomcat 5.5.17 - allowLinking property - symbolic links

2009-12-22 Thread Mark Thomas
On 22/12/2009 08:58, Vishwa. K wrote: > thanks Mark, >But I was wondering why Tomcat did not remove the complete directory > itself.(softlink target directory). It removed only the nested files in it > during undeployment of the application. No idea. Permissions maybe? If that isn't it you'd

Re: j_security_check not working with flash

2009-12-22 Thread Pid
On 21/12/2009 21:50, vpapado wrote: Hello, I have a problem authenticating my users with j_security_check interworking with a flash on my login.jsp page. Here is how things go: I use j_security_check method to authenticate my users. As a result, I have assigned a login.jsp page where I have a

Re: TomCat 6 performance issues

2009-12-22 Thread Pid
On 22/12/2009 05:48, DOrlov wrote: Zacheusz Siedlecki-2 wrote: This could be problem with memmory and GC. Please show your jvm memmory settings. Regards, Zacheusz Thank you for reply, I use next memory and GC settings: -Xms1024m -Xmx6144m -XX:MaxPermSize=512m

question about Tomcat5.5 getServletContext().getContext(String url);

2009-12-22 Thread Peter Chen
Hi, In a JSP file, there is a sentence like this: ServletContext sc = this.getServletContext().getContext("/File"); if(sc == null){ Logger.warn(msg,"Can't get the context of /File."); return; } What's the mean of this sentence? Now, I run this application in Tomcat5.5, and find the l

tomcat native problem 64bit linux os

2009-12-22 Thread Michele Mase'
I've successfully enabled the apr native on linux CentOS 32 bit following some simple steps: Install apr and openssl dev required files yum install openssl-devel apr-devel Install jdk, tomcat and set JAVA_HOME; accordlin to my conf JAVA_HOME is /usr/java/latest and tomcat is in /home/tomcat/tomca

Re: Tomcat 5.5.17 - allowLinking property - symbolic links

2009-12-22 Thread Vishwa. K
thanks Mark, But I was wondering why Tomcat did not remove the complete directory itself.(softlink target directory). It removed only the nested files in it during undeployment of the application. - Vishwa --- On Fri, 12/18/09, Mark Thomas wrote: > From: Mark Thomas > Subject: Re: Tomca

Re: Tomcat shutdown automaticly after randomaly period of time

2009-12-22 Thread André Warnier
Tomcat1 wrote: hi, i have Tomcat 6.0.20. i config server.xml to work with SSL. the problem is that Tomcat shutdown after randomaly period of time and doesnt restart again. Hi. It is not very clear what your problem is. You have to be a bit more specific in your explanation. Also tell us on w

Re: TomCat 6 performance issues

2009-12-22 Thread DOrlov
Leon Rosenberg-3 wrote: > > Hello, > > you should switch on GC logs and check whether the delays happen at > the Full GC Time. > You should also start with Xms = Xmx -> both 6144 (why exactly 6144? :-) > ). > > -verbose:gc > -XX:+PrintGCTimeStamps > -XX:+PrintGCDetails > Thank you for comme

Re: TomCat 6 performance issues

2009-12-22 Thread Leon Rosenberg
Hello, you should switch on GC logs and check whether the delays happen at the Full GC Time. You should also start with Xms = Xmx -> both 6144 (why exactly 6144? :-) ). -verbose:gc -XX:+PrintGCTimeStamps -XX:+PrintGCDetails regards Leon On Tue, Dec 22, 2009 at 6:48 AM, DOrlov wrote: > > > > Za