Re: Tomcat Performance Turning.

2011-09-03 Thread Leon Rosenberg
Hello Christopher, On Fri, Sep 2, 2011 at 11:52 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leon, On 9/2/2011 4:19 PM, Leon Rosenberg wrote: holywarfrom my experience there is no need for apache in your setup anyway /holywar.

Re: Tomcat Performance Turning.

2011-09-03 Thread Leon Rosenberg
Hello Talha, On Fri, Sep 2, 2011 at 11:34 PM, Talha Fazal tfa...@credera.com wrote: Q. Have you tried running directly against tomcat without apache inbetween? A. Yes; this resolves the performance bottleneck. Than its pretty clear where to search, isn't it? Q. holywarfrom my experience

RE: Servlet 3.0 File Upload

2011-09-03 Thread Jonathan Soons
You need to add a line in in your form: input type=text name=filename / Then in your servlet GetPost() method you put this filename in a variable: String filename; filename = req.getParameter(filename); Then instead of part.write(samplefile); do: part.write(filename); Jonathan Soons

Re: CGIServlet - php

2011-09-03 Thread throwsCode
Thanks Hassan: I could use all the luck I can get. I was on NetBeans a couple years back but had to bail when they pretty much abandoned web developers. Oracle put the nail in the coffin but it all began with the killing of Woodstock and the Visual Development Environment and that is on Sun.

RE: Servlet 3.0 File Upload

2011-09-03 Thread Konstantin Preißer
Hi, -Original Message- From: Jonathan Soons [mailto:jso...@juilliard.edu] Sent: Saturday, September 03, 2011 2:24 PM To: Ole Ersoy; Tomcat Users List Subject: RE: Servlet 3.0 File Upload You need to add a line in in your form: input type=text name=filename / Then in your

Re: Performance for many small requests

2011-09-03 Thread Darius D.
Some good advice in this thread already, but given the power of server there should be no problem serving even more requests ( as long as they are small, not bound by CPU or I/O). I'd start looking at JVM GC properties. Turn on gc logging with -Xloggc:/someplace/gclog_tomcat.txt

Re: CGIServlet - php

2011-09-03 Thread Konstantin Kolinko
2011/9/3 throwsCode donmillho...@yahoo.com: I do not quite understand you. I'm trying to implement PHP on tomcat 7.0.20 with no luck.  Does anyone know how I can tell whether the CGIServlet is running? I uncommented all of the sections indicated in the Tomcat document. What sections? What

Re: Form Authentication and status (response) code

2011-09-03 Thread Konstantin Kolinko
2011/9/2 Mabry Tyson ty...@ai.sri.com: Summary: When requiring form authentication, Tomcat responds to an unauthenticated GET request with a HTTP status code of 200 (OK) and the login page. I believe that to be in violation of the HTTP standards. The problem:  Software makes a GET request to

Re: Servlet 3.0 File Upload

2011-09-03 Thread chris derham
You need to add a line in in your form: input type=text name=filename / Then in your servlet GetPost() method you put this filename in a variable: String filename; filename = req.getParameter(filename); Then instead of part.write(samplefile); do: part.write(filename);

RE: Performance for many small requests

2011-09-03 Thread Caldarale, Charles R
From: Darius D. [mailto:darius@gmail.com] Subject: Re: Performance for many small requests in my opinion using 64bit JVM with such a small heap is only needed if performance testing shows gains versus 32bit JVM. The main advantage of using a 64-bit JVM is the increased number of

RE: Performance for many small requests

2011-09-03 Thread Darius D.
n828cl wrote: From: Darius D. [mailto:darius@gmail.com] Subject: Re: Performance for many small requests in my opinion using 64bit JVM with such a small heap is only needed if performance testing shows gains versus 32bit JVM. The main advantage of using a 64-bit JVM is the

Re: Performance for many small requests

2011-09-03 Thread David Kerber
On 9/3/2011 1:15 PM, Darius D. wrote: n828cl wrote: From: Darius D. [mailto:darius@gmail.com] Subject: Re: Performance for many small requests in my opinion using 64bit JVM with such a small heap is only needed if performance testing shows gains versus 32bit JVM. The main advantage of

Re: Performance for many small requests

2011-09-03 Thread Darius D.
David Kerber wrote: On 9/3/2011 1:15 PM, Darius D. wrote: n828cl wrote: From: Darius D. [mailto:darius@gmail.com] Subject: Re: Performance for many small requests in my opinion using 64bit JVM with such a small heap is only needed if performance testing shows gains versus 32bit

RE: Servlet 3.0 File Upload

2011-09-03 Thread Konstantin Preißer
Hi, -Original Message- From: cjder...@gmail.com [mailto:cjder...@gmail.com] On Behalf Of chris derham Sent: Saturday, September 03, 2011 6:51 PM To: Tomcat Users List Subject: Re: Servlet 3.0 File Upload Letting the remote user control the name of the file that is written to

RE: Performance for many small requests

2011-09-03 Thread Caldarale, Charles R
From: David Kerber [mailto:dcker...@verizon.net] Subject: Re: Performance for many small requests Then why shouldn't I just double my heap size? Wouldn't that eliminate the risk of increased cache misses? As Darius stated, this part of the discussion is probably completely irrelevant to

Re: CGIServlet - php

2011-09-03 Thread throwsCode
Wow thanks Konstantin a lot of good questions and suggestions. Please give me some time to put together a cogent reply. I have looked at hundreds of documents and thousands of Internet pages so it will take me some time to filter the ones that I thought applied and actually tried. With regard

Re: CGIServlet - php

2011-09-03 Thread Terence M. Bandoian
On 1:59 PM, Konstantin Kolinko wrote: 2011/9/3 throwsCodedonmillho...@yahoo.com: I do not quite understand you. I'm trying to implement PHP on tomcat 7.0.20 with no luck. Does anyone know how I can tell whether the CGIServlet is running? I uncommented all of the sections indicated in the

Tomcat 7.0.16 won't execute my JSP pages

2011-09-03 Thread Martin Cavanagh
Hello Tomcat users. I have been a happy Tomcat user since Tomcat 4.x, this will be my first post in a long time. We updated from Tomcat 6.x to Tomcat 7.0.4 a few months ago. This worked just fine. When I updated to Tomcat 7.0.20 last week, I discovered that our JSP pages aren't being

Re: CGIServlet - php

2011-09-03 Thread Ken Bowen
Even if you don't want to run in Resin, studying (open source) Quercus should give you the details/direction you want: http://www.caucho.com/resin-3.0/quercus/ --Ken On Sep 3, 2011, at 3:16 PM, Terence M. Bandoian wrote: On 1:59 PM, Konstantin Kolinko wrote: 2011/9/3

RE: Performance for many small requests

2011-09-03 Thread Jeff Sturm
-Original Message- From: Darius D. [mailto:darius@gmail.com] Sent: Saturday, September 03, 2011 1:36 PM As a side note - (CPU)cache/TLB misses have nothing to do with heap size. Too big heap size can be as bad as too low ( by stealing memory from OS that could have been used

servlet unavailable

2011-09-03 Thread Adam Posner
Posner to users show details 8:16 PM (2 minutes ago) Hello all: I am hoping someone can help with this. Tomcat 6.0.28 keeps giving me, saying 'Servlet Front Controller is not available' I am using struts 1, the jar file is struts-core-1.3.10 located in install_dir/myapp/WEB-INF/lib Please

Virtual hosts on Tomcat 7 for 3 webapps

2011-09-03 Thread Ioannis Parapontis
Hi there I have a server that runs 3 different web apps on the same ip but each on its own port. eg ip:8080, ip:8081 and ip:8082. All apps should run simultaneously and have their own folders. Can a single Tomcat support the 3 of them and can i use virtual hosts on Tomcat alone ? Thanks

Re: Virtual hosts on Tomcat 7 for 3 webapps

2011-09-03 Thread Manuel Fernández Panzuela
why you don't use virtualhost over apache ? it's easier do it with it. Un saludo 2011/9/3 Ioannis Parapontis parapont...@gmail.com Hi there I have a server that runs 3 different web apps on the same ip but each on its own port. eg ip:8080, ip:8081 and ip:8082. All apps should run

Re: Virtual hosts on Tomcat 7 for 3 webapps

2011-09-03 Thread Hassan Schroeder
On Sat, Sep 3, 2011 at 2:51 PM, Ioannis Parapontis parapont...@gmail.com wrote: I have a server that runs 3 different web apps on the same ip but each on its own port. eg ip:8080, ip:8081 and ip:8082. All apps should run simultaneously and have their own folders.  Can a single Tomcat support

RE: Performance for many small requests

2011-09-03 Thread Darius D.
Jeff Sturm wrote: The Linux JVM has a nice option -XX:+UseLargePages to help avoid TLB misses on heap accesses. It's good for modest gains, and has the side effect of locking the heap into memory. I tend to use it on systems with large heaps. Not much you can do about cache misses

Re: Virtual hosts on Tomcat 7 for 3 webapps

2011-09-03 Thread Ioannis Parapontis
Thanks for the responses. The reason i do not use apache is that the server that runs my 3 apps works better with Tomcat. So it would be useful if some guidelines are provided on how i should do this. Sent from my iPhone On 4 Σεπ 2011, at 1:01, Manuel Fernández

Re: Virtual hosts on Tomcat 7 for 3 webapps

2011-09-03 Thread Hassan Schroeder
On Sat, Sep 3, 2011 at 3:25 PM, Ioannis Parapontis parapont...@gmail.com wrote: So it would be useful if some guidelines are provided on how i should do this. They are; see the documentation's virtual hosting how-to :-) -- Hassan Schroeder

Re: CGIServlet - php

2011-09-03 Thread Mark Eggers
- Original Message - From: throwsCode donmillho...@yahoo.com To: users@tomcat.apache.org Cc: Sent: Saturday, September 3, 2011 11:44 AM Subject: Re: CGIServlet - php Wow thanks Konstantin a lot of good questions and suggestions.  Please give me some time to put together a

Re: CGIServlet - php

2011-09-03 Thread Mark Eggers
- Original Message Edited - From: Mark Eggers its_toas...@yahoo.com To: Tomcat Users List users@tomcat.apache.org Cc: Sent: Saturday, September 3, 2011 3:53 PM Subject: Re: CGIServlet - php C. Configure web.xml I put everything into my web application's web.xml since I didn't

Re: Virtual hosts on Tomcat 7 for 3 webapps

2011-09-03 Thread Mark Eggers
- Original Message - From: Ioannis Parapontis parapont...@gmail.com To: Tomcat Users List users@tomcat.apache.org Cc: Sent: Saturday, September 3, 2011 3:25 PM Subject: Re: Virtual hosts on Tomcat 7 for 3 webapps T hanks for the responses. The  reason i do not use apache is that

Servlet 3.0 Part Header Keys

2011-09-03 Thread Ole Ersoy
Hi, Anyone know if the the keys for the various javax.servlet.http.Part headers are available as constants anywhere? I'd like to do something like: part.getHeader(Part.FILENAME);...instead of part.getHeader(filename); TIA, - Ole

Re: CGIServlet - php

2011-09-03 Thread throwsCode
Terence, Ken, Mark thanks for all your input. Much to consider. Mark your the first person who replied who sounds like they have actually run php and tomcat. Despite your concerns, this gives me the confidence that i can get it running with all this help. Perhaps I'm wrong but I don't think

Re: CGIServlet - php

2011-09-03 Thread Mark Eggers
- Original Message - From: throwsCode donmillho...@yahoo.com To: users@tomcat.apache.org Cc: Sent: Saturday, September 3, 2011 5:13 PM Subject: Re: CGIServlet - php Terence, Ken, Mark thanks for all your input.  Much to consider. Mark your the first person who replied who

[Servlet 3.0] Monitoring File Upload Progress

2011-09-03 Thread Ole Ersoy
Hi, Anyone know whether it's possible to monitor progress of a file upload? TIA, - Ole - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

CRLF Stripped in Tomcat Response Header

2011-09-03 Thread Nadav Katz
Hi All! First, let me assure everyone that I am not a hacker, exactly the opposite, but I have a related problem. I am in the process of implementing code that protects against header manipulation. I created a filter that strips line feed and carriage return characters from requests to avoid