Re: Tomcat scalability setting - need help please
On Fri, Apr 9, 2010 at 2:28 AM, wrote: > As what I meant by exhaustive, I went to the extent of building my own cache > scheme and it worked, the process still long, but at least it does not kill > the other user, but if two or more user doing the >same huge process at the > same time it will still consume the server. If by "same" you mean, that they send the same query in parallel, before a result can be encached, you could solve this problem, by having a central cache which stores the result of a future computation (literally a flag that a result will be available soon and there is no need to send the same query again). Anyway, if you want to achieve a better insight into your application you should consider using a monitoring framework. regards Leon - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Fragmented delivery of servlet request
Thoughts welcomed on the following problem : Centos 5.4, http 2.2.3, tomcat5-5.5.23-0jpp.7.el5_3.2, java-1.6.0-openjdk-1.6.0.0-1.7.b09.el5 A large servlet request, POST'ed from client to apache, connected using proxy_ajp to ajp://localhost:8009. reassembled on server eth0 as 10766 bytes but only partially sent to tomcat. Th eth0 line trace to http ( port 80 ) was split over 19 packets of 536 bytes each. My initial thoughts were, that maxHttpHeaderSize=8192, was too low. Increasing to 16384 did not resolve the issue. So more wireshark line traces, ( one tcpdump across eth0 capturing the http POST and a 2nd tcpdump across loopback capturing ajp connector traffic ) revealed, that apache via connector ajp delivered each packet realtime time to tomcat, without waiting for all 10766 bytes to arrive, though the trace across loopback on port 8009, revealed that tomcat starting the reply before all 10766 bytes had arrived. tcpdump on eth0 confirmed, by reassembled tcp segment to contained the 10766 bytes from the browser client. ( Note : I have mangled URI SRV referer host headers ) Apache JServ Protocol v1.3 Magic: 1234 Length: 528 Code: (2) FORWARD REQUEST Method: (4) POST Version: HTTP/1.1 URI: //y RADDR: 192.168.252.68 RHOST: SRV: xxx PORT: 80 SSLP: 0 NHDR: 11 accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, */* referer: http:// accept-language: en-us content-type: application/x-www-form-urlencoded UA-CPU: x86 accept-encoding: gzip, deflate user-agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1) host: xxx content-length: 10766 connection: Keep-Alive Cache-Control: no-cache My question is, why did tomcat start to send the RSP ( response ) after only receiving the first data packet from ajp connector, around 500 bytes, when the above states the content length is 10766 bytes. You can also see that subsequent REQ ( request body ) data packets are still transmitted to tomcat, though the response is already being returned. Another option I thought of, was to buffer the whole 10766 bytes up on the apache side, and then get the connector to pass the request across as one 'big' packet. Is this possible to configure ? If so, then maxHttpHeaderSize will come into play, though at the moment only many small packets are being sent across in the fragmented request. A stack dump in catalina.out can be seen below, where the input filter is balking on the POSTed parameters, most likely because only 550 bytes of the 10766, have turned up for the input filter to process. Apr 9, 2010 10:51:55 AM org.apache.catalina.connector.Request parseParameters WARNING: Exception thrown whilst processing POSTed parameters java.io.IOException: Socket read failed at org.apache.coyote.ajp.AjpAprProcessor.read(AjpAprProcessor.java:1038) at org.apache.coyote.ajp.AjpAprProcessor.readMessage(AjpAprProcessor.java:1159) at org.apache.coyote.ajp.AjpAprProcessor.receive(AjpAprProcessor.java:1091) at org.apache.coyote.ajp.AjpAprProcessor.refillReadBuffer(AjpAprProcessor.java:1130) at org.apache.coyote.ajp.AjpAprProcessor.access$0(AjpAprProcessor.java:1115) at org.apache.coyote.ajp.AjpAprProcessor$SocketInputBuffer.doRead(AjpAprProcessor.java:1233) at org.apache.coyote.Request.doRead(Request.java:419) at org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:265) at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:403) at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:280) at org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:193) at org.apache.catalina.connector.Request.readPostBody(Request.java:2419) at org.apache.catalina.connector.Request.parseParameters(Request.java:2398) at org.apache.catalina.connector.Request.getParameter(Request.java:1005) at org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java:353) at com..y.filters.RequestValidation.getParameter(RequestValidation.java:40) at com...z.service(z.java:157) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at com...filters.RequestFilter.doFilter(RequestFilter.java:16) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.Standa
Re: Having difficulty using keytool -genkey to get a key with blank OU (instead of unknown)
Hi Eric, Try to put the subject DN (with OU equal to blank) in -dname field as below. keytool -genkey -keystore -storepass -alias -dname "CN=your cn,OU=,O=your company,C=SG" On 9 April 2010 06:51, Eric DuToit wrote: > I need to generate a keypair with the OU having a NULL value / blank > (instead of "Unknown"). If I leave the field blank, it results in an > unknown value. > > I've googled several different things but I may just not be using the > right search. Any help is appreciated. > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat scalability setting - need help please
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rendra, On 4/8/2010 8:28 PM, cinl...@gmail.com wrote: > I stored the result bean in the http request object, NOT IN THE > SESSION OBJECT, hoping that once the result is delivered, the beans > will die with the request object since request object. They will, but if you are selecting "millions of rows" and storing them in the request, you're probably grabbing /way/ too many rows for a single page to display reasonably: you're wasting memory, network bandwidth, and CPU time to manage all that. It's no wonder your webapp doesn't scale. > Fyi, I must process and send millions of data since my customers > usually run analysis processes from 15 different tables with hundred > of thousands of data from each table. It is an analysis of 6 or more > months of manufacturing data combined with marketing, purchasing, > inventory mutations, pricing, production monitoring etc. How many rows are actually being sent back to the client? Millions, or less than that? > As what I meant by exhaustive, I went to the extent of building my > own cache scheme and it worked, the process still long, but at least > it does not kill the other user, but if two or more user doing the > same huge process at the same time it will still consume the server. That doesn't sound like a caching scheme that "works". Back to the original question: Tomcat is scaling just fine: it's allowing users to connect very quickly, while your web application is choking itself and probably the db server. There is no setting in Tomcat to make your webapp run better. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAku+g7AACgkQ9CaO5/Lv0PCerwCfXELH2klREvz8jseSI72Z+cS4 a5cAoK8xqknjL8LvAyyaVHyvF6lyDyOu =0ehh -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat does not honor acceptCount configuration variable
On Apr 8, 2010, at 13:37, "Timir Hazarika" wrote: > How would this configuration look like in server.xml ? - Chuck - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Avoiding random JMX port on tomcat
On Apr 8, 2010, at 12:59, "emerson cargnin" wrote: > I would be great if that could be configured directly in the > properties I suspect that you can. Most attribute values in server.xml can be encoded as ant-style system property references: attr="${my.property}" - Chuck >> >> - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: URLs with '../' and 404s
On Apr 8, 2010, at 18:24, "Nikita Tovstoles" mailto:nikita.tovsto...@gmail.com>> wrote: Without asserting that Wicket's is NOT breaking an RFC, I would appreciate a clarification on which RFC do you think the framework (or the app) is breaking? Since I'm sitting in a terminal at JFK right now, it's a bit tedious to look things up. Mostly, however, I was just referring to your assertion that relative URLs shouldn't be used: I realize that's against the RFC (which says redirects are supposed to be absolute) - Chuck
Re: Which native library?
On Apr 8, 2010, at 17:49, "Christopher Schultz" wrote: > Sounds like it's not loading no matter what version you try. Maybe you > don't have the java.library.path you think you do, or maybe you just > haven't put the DLL in the right place. Or perhaps there's a 32/64-bit mismatch. The JVM will ignore DLLs that are not the same mode as the JVM. - Chuck - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat scalability setting - need help please
Hi Chris I stored the result bean in the http request object, NOT IN THE SESSION OBJECT, hoping that once the result is delivered, the beans will die with the request object since request object. I also called the necessary .close() methods and then set the conn, statement, rs, object itself to null. Do you have better way as how to transport this result to jsp? Please enlighten me. Fyi, I must process and send millions of data since my customers usually run analysis processes from 15 different tables with hundred of thousands of data from each table. It is an analysis of 6 or more months of manufacturing data combined with marketing, purchasing, inventory mutations, pricing, production monitoring etc. As what I meant by exhaustive, I went to the extent of building my own cache scheme and it worked, the process still long, but at least it does not kill the other user, but if two or more user doing the same huge process at the same time it will still consume the server. TIA Rendra GOD is GREAT! -Original Message- From: Christopher Schultz Date: Thu, 08 Apr 2010 18:12:16 To: Tomcat Users List Subject: Re: Tomcat scalability setting - need help please -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rendra, On 4/8/2010 12:53 PM, Cin Lung wrote: > Your remark is almost correct. What I did is that I store the result of the > resultset (which can go up to million lines of rows) in a batch of Java > beans. Then I set the beans to the HTTP Request and pass them to the > receiving JSP. This will kill your server every time. It is a bad plan in general and will simply not scale in any way. Consider changing... everything. > But I do remember to return the connection to the pool. Super! > I also try to kill > the statements, result sets, etc by setting them to null. It's better to call [whatever].close(). > But I realize that > java might wait for the memory to be cleared by the garbage collector. If you're storing all that stuff in "beans" in the session, you're toast. > This goes back to my second problem. If the user closes the browser, the > request object form the servlet would lost its way to return the result. And > this will hog the tomcat performance for a while. If you are sending millions of rows to your client, it's no wonder they are closing their web browser. :( - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAku+VMAACgkQ9CaO5/Lv0PBl2wCfa2YlxlZe6uacPKSc2coaji7Y bl8AoKguMz08zZNU/plxn8moq5wLLAZt =wM9J -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Having difficulty using keytool -genkey to get a key with blank OU (instead of unknown)
I need to generate a keypair with the OU having a NULL value / blank (instead of "Unknown"). If I leave the field blank, it results in an unknown value. I've googled several different things but I may just not be using the right search. Any help is appreciated. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat 5.5.28
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 William, On 4/8/2010 6:32 PM, William wrote: > I just installed ubuntu and netbeans 6.7.1 . My web hosting use 5.5.28 I > need to download the zip ver. of 5.5.28 for netbeans . Where do I > download the ver for ubuntu ? Apache does not provide OS- or tool-specific versions of packages: all you can get is the standard installation in either .zip, .tar.gz, or (for Microsoft Windows) .exe installers. If you want to install Tomcat under Ubuntu you can either download the "vanilla" package from tomcat.apache.org, or you can use the Ubuntu package manager (or apt-get if you like the command-line) to install their packaged version of Tomcat. Note that members of this list often have difficulty giving advice to folks using package-managed versions of Tomcat because of the ... latitude taken by the package administrators when it comes to the placement of configuration files, deployed webapps, etc. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAku+XFwACgkQ9CaO5/Lv0PD2DACfaaauQNuhtcgZWbguqpc+/Xj8 wOIAn1DeL0J7mwFapyiWX2NluYLTFJqK =N1kK -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 6.0.24 requires me to log on twice
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Terry, On 4/8/2010 9:12 AM, Terry Horner wrote: > I am having a problem with Tomcat - if I log on to a page which contains > a restricted resource, it shows me the page (and any unrestricted > images, etc), but doesn't show the restricted resource (I believe tomcat > thinks the user is not authenticated as sends the 403 page, judging by > the 3478b size of the request). That sounds about right: if you have a page like this: /unrestricted/index.jsp: " /> Then your /unrestricted/index.jsp will display and the image will be broken. Note that Tomcat, in response to the request for /restricted/sample.gif will store that request and respond with a login form. > When I move on to another page (or > reload the same page) I am sent to the logon screen again, after I logon > from here everything works as it should. So, if you go to /unrestricted/index.jsp, then hit RELOAD you get a login form? That's weird. > The protected resource is some javascript, it is dynamically created as > it varies from user to user. What should the behavior be for this resource is the user is not logged-in? Can you simply make that particular resource non-restricted? That would seem to be the easiest solution. > This happens on Tomcat 6.0.24 and 6.0.26, but not 6.0.20, which makes me > think it is related to change 45255 (Provide protection against session > fixation by changing session ID automatically on authentication.), in > the dev environment tomcat is running on windows XP. Session tracking is > done by cookie, not URL rewriting. I haven't read the actual patch that added this session-id switching but it's not clear if it's configurable. Mark said he'd likely make this an option that defaults to "off". > Below is a(n abridged) snapshot of the access log, the last field is the > cookie sent by the browser > dataservlet1, dataservlet2 and javascriptservlet are restricted to > logged on users, nothing under /frontend has any security constraints. > > The sequence of events, from the browser end is > (1) A request is made to dataservlet1 > (2) The user logs in (and tomcat rewrites the cookie) > (3) Is forwarded to the dataservlet1 page, frontend resources are > displayed, but the javascriptservlet is not, as it has been requested > with the old cookie (this happens on ie and firefox, so doesn't appear > to be a browser issue), the apparent attempt to logon for the > javascriptservlet also throws another cookie into the mix > > (4) Another page is requested > (5) The user is sent to the login page > (6) They log in again (getting a third cookie), and from this point > everything is ok > > #Fields: c-dns x-H(remoteUser) date time x-H(protocol) cs-method cs-uri > sc-status bytes x-H(requestedSessionId) > #Version: 2.0 > #Software: Apache Tomcat/6.0.26 > (1) > localhost - 2010-04-08 12:25:33 'HTTP/1.1' GET > /dataservlet1?timestamp=1205168884309 200 3478 - That looks like it presented a login page (3478 bytes, right?). > localhost - 2010-04-08 12:25:33 'HTTP/1.1' GET > /frontend/images/image1.gif 200 125 '6A193109AA' > (2) Given the timestamp, this was a request for a resource linked from the login page itself. > localhost - 2010-04-08 12:25:42 'HTTP/1.1' POST /j_security_check 302 - > '6A193109AA' Login attempt. > localhost - 2010-04-08 12:25:42 'HTTP/1.1' POST /j_security_check 302 - > '6A193109AA' > (3) Second login attempt: note the cookie from the client is the same each time. The timing looks strange to me: why two simultaneous login attempts? > localhost 'user75' 2010-04-08 12:25:46 'HTTP/1.1' GET > /dataservlet1?timestamp=1205168884309 200 22904 '949F3A1AED' Looks like the last authentication attempt was successful, the cookie has been changed, and the client has been redirected to the original resource (/dataservlet1?timestamp=...). > localhost - 2010-04-08 12:25:46 'HTTP/1.1' GET > /frontend/includes/functions.js 200 917 '6A193109AA' Given the timestamp, this looks like a resource linked from the response from dataservlet1. I can see that the session id cookie appears to be "stale". > localhost - 2010-04-08 12:25:46 'HTTP/1.1' GET > /javascriptservlet?request=common.js 200 3478 '6A193109AA' This looks okay, other than the obviously incorrect cookie. > localhost - 2010-04-08 12:25:50 'HTTP/1.1' GET > /frontend/images/global/logo.gif 200 2393 'DE52CCEEE3' > (4) That looks weird. Where did /that/ session id come from? Yea, at this point, it looks like everything goes to hell, except that the cookies are all the same with a third (!) session id. > localhost - 2010-04-08 12:26:04 'HTTP/1.1' GET > /dataservlet2?timestamp=1270729564199 200 3478 'DE52CCEEE3' > localhost - 2010-04-08 12:26:04 'HTTP/1.1' GET > /frontend/images/image2.gif 200 125 'DE52CCEEE3' > (5) > localhost - 2010-04-08 12:26:07 'HTTP/1.1' POST /j_security_check 302 - > 'DE52CCEEE3' > localhost - 2010-04-08 12:26:07 'HTTP/1.1' POST /j_security_check 302 - > 'DE52CCEEE3' > (6) These double-lo
tomcat 5.5.28
I just installed ubuntu and netbeans 6.7.1 . My web hosting use 5.5.28 I need to download the zip ver. of 5.5.28 for netbeans . Where do I download the ver for ubuntu ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: URLs with '../' and 404s
Chuck, Without asserting that Wicket's is NOT breaking an RFC, I would appreciate a clarification on which RFC do you think the framework (or the app) is breaking? HttpServletResponse.sendRedirect allows relative URLs explicitly. From 1.4 EE Javadoc: "Sends a temporary redirect response to the client using the specified redirect location URL. This method can accept relative URLs; the servlet container must convert the relative URL to an absolute URL before sending the response to the client. If the location is relative without a leading '/' the container interprets it as relative to the current request URI." So, if the current URI is "http://localhost/app/page"; and sendRedirect method arg is "../../app/page.0" what does that violate? The arg is a relative URL that "container must convert to an absolute URL", no? And, yes, the *result* of that conversion must be an absolute URL as specified by: http://tools.ietf.org/html/rfc2616#section-14.30 On Thu, Apr 8, 2010 at 1:07 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > On Apr 8, 2010, at 14:53, "Christopher Schultz" < > ch...@christopherschultz.net > > wrote: > > > I see no toAbsolute method in the HttpServletResponse class. Are you > > talking about some other toolkit? > > It's an internal Tomcat method that the OP seems to think should > rectify the RFC violations his code is making. (I don't have a whole > lot of sympathy for that position.) > > - Chuck > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
Re: Tomcat scalability setting - need help please
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rendra, On 4/8/2010 12:53 PM, Cin Lung wrote: > Your remark is almost correct. What I did is that I store the result of the > resultset (which can go up to million lines of rows) in a batch of Java > beans. Then I set the beans to the HTTP Request and pass them to the > receiving JSP. This will kill your server every time. It is a bad plan in general and will simply not scale in any way. Consider changing... everything. > But I do remember to return the connection to the pool. Super! > I also try to kill > the statements, result sets, etc by setting them to null. It's better to call [whatever].close(). > But I realize that > java might wait for the memory to be cleared by the garbage collector. If you're storing all that stuff in "beans" in the session, you're toast. > This goes back to my second problem. If the user closes the browser, the > request object form the servlet would lost its way to return the result. And > this will hog the tomcat performance for a while. If you are sending millions of rows to your client, it's no wonder they are closing their web browser. :( - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAku+VMAACgkQ9CaO5/Lv0PBl2wCfa2YlxlZe6uacPKSc2coaji7Y bl8AoKguMz08zZNU/plxn8moq5wLLAZt =wM9J -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat scalability setting - need help please
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rendra, At the risk of getting sucked into the insanity... On 4/8/2010 7:19 AM, Cin Lung wrote: > It's running 32 Bit windows 2003 only With 8GB Ram. 32-bit Microsoft Windows can access 8GiB of RAM (much more, in fact), but each process is still limited to a 4GiB address space, and practically Windows will never give you that much anyway. If you want to use more than roughly 1800MiB for Tomcat, you'll have to go to 64-bit Microsoft Windows. > I am merely trying to find a way out and I have exhausted my > resources to make the software as fast as possible. You didn't tell us what exhaustive measures you're already tried. > By the way the number of data that is being processed by the heavy app is in > millions of rows. I ran the SQL directly to the mysql server and it worked > ok (within minutes and not freezing the server). That suggests one of a few things: 1. Remoteness (that is, not running on the server running MySQL) has a penalty 2. Your webapp isn't building the query you think it is 3. Your webapp is doing much more with the results than simply listing them Let's examine those possibilities one at a time, shall we? First, if remoteness is incurring a penalty, it's generally because you're transmitting a lot of data. Are you transmitting millions of rows from the server to the client? Why? Is this something that can be done in a stored procedure on the server, or even on a separate, server-only process? IIRC Connector/J, in its default configuration, downloads the entire result set before returning control to your code. That means that if you are selecting millions of rows, you have to wait for them all to go from the server to your webapp, and they all take up a bunch of memory while you're working with them. Have you verified this is not happening to you? Second, have you dumped-out the query your webapp is building to make sure it's the one you think is running? Third, is your webapp doing anything else with these rows other than, say, performing a simple examination of them? I can't imagine why a web application would need to fetch millions of rows at once. I can understand fetching a small portion of millions of rows at once (e.g. SELECT a,b,c FROM huge_table LIMIT 1,100) and displaying them to the user, but never actually transferring that many rows. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAku+VB8ACgkQ9CaO5/Lv0PAxTQCeLdkcbe7sdKz4M3/8ScXCYmRl 4XAAnRbd5z3H4gl7b8Hhxj1n8eAW9G1H =pieL -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: URLs with '../' and 404s
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nikita, On 4/8/2010 4:03 PM, Nikita Tovstoles wrote: > Response.java in Tomcat src: > http://kickjava.com/src/org/apache/catalina/connector/Response.java.htm Hmm... a non-Apache site without a version reference? :( How about http://svn.apache.org/repos/asf/tomcat/tc6.0.x/tags/TOMCAT_6_0_26/java/org/apache/catalina/connector/Response.java Looks like the toAbsolute() method for a relative location returns an unchanged location. Heh. > but I am not clear on why doesn't Tomcat collapse those URLs in > Response.toAbsolute()? Because Tomcat is not required to do so? I agree with Davis's assertion that context-relative paths are always the right way to go. The spec, API, and basically every tool for use with servlets steers you in that direction. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAku+UaoACgkQ9CaO5/Lv0PBj6ACfXsWfGpfm9BGTrXXudfYmx3WD gTYAniQtuKTYjsQFUTSWQb9I2XgTPNvL =Vl8Z -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Which native library?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeffrey, On 4/8/2010 4:35 PM, Jeffrey Janner wrote: > Allow me to answer my own question: 1.1.18 > I just started downloading from the archive until I found one that > worked. Generally, the latest is always the best. > Any clue what happened between 1.1.18 & 1.1.19? http://tomcat.apache.org/native-doc/miscellaneous/changelog.html > > Apr 8, 2010 3:14:40 PM org.apache.catalina.core.AprLifecycleListener > lifecycleEvent > INFO: The Apache Tomcat Native library which allows optimal performance > in production environments was not found on the java.library.path: > C:\Program Files\Apache Software Foundation\Tomcat [...] This indicates that the DLL file wasn't found or could not be initialized for some other reason. Is tcnative.dll somewhere in the path listed? > INFO: Initializing Coyote HTTP/1.1 on http-172.16.9.1-80 > Apr 8, 2010 3:14:40 PM org.apache.coyote.http11.Http11BaseProtocol init > SEVERE: Error initializing endpoint > java.io.FileNotFoundException: C:\Documents and > Settings\Administrator\.keystore (The system cannot find the file > specified) Does this file exist? If you are trying to use APR, then presumably you have a different configuration for your SSL using certificate files, etc. instead of a keystore. If APR isn't initializing correctly, you'll get an error trying to configure the standard connector. Until you get your APR configured properly, you can ignore the complaints that the standard connector gives you. > > Apr 8, 2010 3:16:06 PM org.apache.catalina.core.AprLifecycleListener > lifecycleEvent > INFO: The Apache Tomcat Native library which allows optimal performance > in production environments was not found on the java.library.path: > C:\Program Files\Apache Software Foundation\Tomcat [...] Sounds like it's not loading no matter what version you try. Maybe you don't have the java.library.path you think you do, or maybe you just haven't put the DLL in the right place. > > Apr 8, 2010 3:16:54 PM org.apache.coyote.http11.Http11AprProtocol init > INFO: Initializing Coyote HTTP/1.1 on http-172.16.9.1-80 > Apr 8, 2010 3:16:55 PM org.apache.coyote.http11.Http11AprProtocol init > INFO: Initializing Coyote HTTP/1.1 on http-172.16.9.1-443 The only thing I can think of is that you have the DLL in the wrong place, but it seems you've been able to get it working with 1.1.8. > I have seen the "unable to locate" library errors in 5.5.28 installs > with 1.1.19 & 1.1.20, but at least the OpenSSL still worked. Since the use of OpenSSL is predicated on the successful use of APR, I'm not sure how this could be true. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAku+T2EACgkQ9CaO5/Lv0PDhWgCgvzHju8XQzsSCv26t3PzQT+pH ofkAoJ3uFqVslZL1PsNM1rfPeBUM/F9k =jWUB -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 6.0.26 startup scripts changed from 6.0.18
Am Thu, 8 Apr 2010 15:16:36 -0400 schrieb "Eric B." : > So what my init.d script currently does is pre-create an empty pid > file in the /var/run directory, then changes ownership of it to > "tomcat" so that tomcat can then update it with the actual pid of the > tomcat process. > > Given that there is no way for the startup script to write to > the /var/run directory, my options are fairly limited without > modifying it. 1) Change the location of the pid file. 2) Make > the /var/run directory tomcat writable by default (via acl or by mode > permissions) Neither option particularly appeals to me. Your solution with creating an empty PID-file, changing the ownership and filling it afterwards with the PID-number sounds a little bit complicated and I doubt that there are a lot of installations using this approach. We created a special directory for the tomcat-PID-files (we're running up to 8 Tomcats on one hardware) in order to keep the PIDs together and set the "sticky bit" for this directory (looks similar to the usual settings of /tmp) to restrict access to the PID-files once they are created by catalina.sh: [te...@mikesch ~]$ ls -l /srv/ drwxr-xrwt 2 rootroot4096 8. Apr 08:08 run te...@mikesch ~]$ ls -l /srv/run/ -rw-r--r-- 1 crm crm 6 8. Apr 04:03 TCcrm.pid -rw-r--r-- 1 premiere premiere 6 8. Apr 08:08 TCpremiere.pid Changing the path of the PID-file is pretty simple by setting CATALINA_PID before calling catalina.sh: CATALINA_PID=/srv/run/TCcrm.pid BTW: I have no opinion concerning the patch of catalina.sh you suggested, sorry. BTW2: We aren't so happy with the change of the default-catalina.sh in 6.0.26, too, but as we separated tomcat's bin-directory from tomcat's "symlinked" default-installation for some historical reason, it causes no trouble with rebooted hardware as we still use the "old" catalina.sh. Regards, Tobias. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Which native library?
Allow me to answer my own question: 1.1.18 I just started downloading from the archive until I found one that worked. Any clue what happened between 1.1.18 & 1.1.19? Note I've only had the "not found" errors on Windows 2003 & up with 5.5.27/28, but still had SSL support. If anyone is interested, here is the relevant portions of the catalina.log file output: Apr 8, 2010 3:14:40 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin;.;C:\WINNT\Sun\Java\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\syst em32;C:\WINNT;C:\WINNT\System32\Wbem;... Apr 8, 2010 3:14:40 PM org.apache.coyote.http11.Http11BaseProtocol init INFO: Initializing Coyote HTTP/1.1 on http-172.16.9.1-80 Apr 8, 2010 3:14:40 PM org.apache.coyote.http11.Http11BaseProtocol init SEVERE: Error initializing endpoint java.io.FileNotFoundException: C:\Documents and Settings\Administrator\.keystore (The system cannot find the file specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.(FileInputStream.java:106) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFac tory.java:279) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocket Factory.java:222) at org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.getKeyManagers(JSSE1 4SocketFactory.java:141) at org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.init(JSSE14SocketFac tory.java:109) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocke tFactory.java:98) at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint. java:294) at org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.java :138) at org.apache.catalina.connector.Connector.initialize(Connector.java:1016) at org.apache.catalina.core.StandardService.initialize(StandardService.java :580) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:7 91) at org.apache.catalina.startup.Catalina.load(Catalina.java:503) at org.apache.catalina.startup.Catalina.load(Catalina.java:523) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:266) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:431) Apr 8, 2010 3:14:40 PM org.apache.catalina.startup.Catalina load SEVERE: Catalina.start LifecycleException: Protocol handler initialization failed: java.io.FileNotFoundException: C:\Documents and Settings\Administrator\.keystore (The system cannot find the file specified) at org.apache.catalina.connector.Connector.initialize(Connector.java:1018) at org.apache.catalina.core.StandardService.initialize(StandardService.java :580) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:7 91) at org.apache.catalina.startup.Catalina.load(Catalina.java:503) at org.apache.catalina.startup.Catalina.load(Catalina.java:523) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:266) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:431) Apr 8, 2010 3:14:40 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1875 ms Apr 8, 2010 3:14:40 PM org.apache.catalina.realm.JAASRealm setContainer INFO: Set JAAS app name SERVICE1 Apr 8, 2010 3:14:40 PM org.apache.catalina.realm.JAASRealm setContainer INFO: Set JAAS app name SERVICE2 Apr 8, 2010 3:14:40 PM org.apache.catalina.realm.JAASRealm setContainer INFO: Set JAAS app name SERVICE3 Apr 8, 2010 3:14:41 PM org.apache.catalina.core.StandardService start INFO: Starting service SERVICE1 Apr 8, 2010 3:14:41 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.17 Apr 8, 2010 3:14:41 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Apr 8, 2010 3:14:48 PM org.apache.coyote.http11.Http11BaseProtocol start INFO: Starting Coyote HTTP/1.1 on http-172.16.9.1-80 Apr 8, 2010 3:14:48 PM org.apache.coyote.http11.Http11BaseProtocol start SEVERE: Error starting endpoint java.io.FileNotFoundException: C:\Documents and Settings\Administrator\.keystore (T
Re: URLs with '../' and 404s
I strongly advocate server relative URLs which get rid of the whole problem. All that means is the URL becomes everything after the servername & port in a full absolute URL. That way it just plain works and even minimizes the browser's understanding of how to compute an absolute URL from a relative one. It's even super easy to create them ... request.getContextPath() + '/app/rel/path/to/myresource.blah' It even takes into account if the app is deployed multiple times in multiple contexts. ie it's always the context in the current request. --David On 4/8/10 4:03 PM, Nikita Tovstoles wrote: > Response.java in Tomcat src: > http://kickjava.com/src/org/apache/catalina/connector/Response.java.htm > > > > On Thu, Apr 8, 2010 at 12:52 PM, Christopher Schultz < > ch...@christopherschultz.net> wrote: > > Nikita, > > On 4/8/2010 11:14 AM, Nikita Tovstoles wrote: > >>> We use Wicket that periodically redirects to relative URLs > starting with > >>> '../'. I realize that's against the RFC (which says redirects are > supposed > >>> to be absolute), but I am not clear on why doesn't Tomcat collapse > those > >>> URLs in Response.toAbsolute()? > > I see no toAbsolute method in the HttpServletResponse class. Are you > talking about some other toolkit? > > >>> -assume client is at http://localhost/app/home > >>> -app responds to a request with 302 '../home.0' > >>> -Response.toAbsolute() rewrites Location as > http://localhost/app/home/. . > >>> /home.0 (spaces added to avoid spam filter) > > What does the response actually look like to the browser? > > >>> But, if client then issues a GET with exactly that URL - and not > >>> http://localhost/app/home.0, Tomcat will issue a 404. > > Which URL? > > >>> In other words, > >>> toAbsolute() produces a URL that Tomcat cannot service. Why the > asymmetry? > > Again, where does toAbsolute come from? > > -chris >> - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org >> >> > ---
Re: URLs with '../' and 404s
On Apr 8, 2010, at 14:53, "Christopher Schultz" wrote: > I see no toAbsolute method in the HttpServletResponse class. Are you > talking about some other toolkit? It's an internal Tomcat method that the OP seems to think should rectify the RFC violations his code is making. (I don't have a whole lot of sympathy for that position.) - Chuck - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: URLs with '../' and 404s
Response.java in Tomcat src: http://kickjava.com/src/org/apache/catalina/connector/Response.java.htm On Thu, Apr 8, 2010 at 12:52 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Nikita, > > On 4/8/2010 11:14 AM, Nikita Tovstoles wrote: > > We use Wicket that periodically redirects to relative URLs starting with > > '../'. I realize that's against the RFC (which says redirects are > supposed > > to be absolute), but I am not clear on why doesn't Tomcat collapse those > > URLs in Response.toAbsolute()? > > I see no toAbsolute method in the HttpServletResponse class. Are you > talking about some other toolkit? > > > -assume client is at http://localhost/app/home > > -app responds to a request with 302 '../home.0' > > -Response.toAbsolute() rewrites Location as http://localhost/app/home/. . > > /home.0 (spaces added to avoid spam filter) > > What does the response actually look like to the browser? > > > But, if client then issues a GET with exactly that URL - and not > > http://localhost/app/home.0, Tomcat will issue a 404. > > Which URL? > > > In other words, > > toAbsolute() produces a URL that Tomcat cannot service. Why the > asymmetry? > > Again, where does toAbsolute come from? > > - -chris > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.4.10 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAku+NBoACgkQ9CaO5/Lv0PDlRwCfY7H0qEd2n7ecm5cx5Eoq9Bgs > VbsAoKviSHois6KOMe8OKloU/UwkWE72 > =WdrP > -END PGP SIGNATURE- > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > ---
Re: URLs with '../' and 404s
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nikita, On 4/8/2010 11:14 AM, Nikita Tovstoles wrote: > We use Wicket that periodically redirects to relative URLs starting with > '../'. I realize that's against the RFC (which says redirects are supposed > to be absolute), but I am not clear on why doesn't Tomcat collapse those > URLs in Response.toAbsolute()? I see no toAbsolute method in the HttpServletResponse class. Are you talking about some other toolkit? > -assume client is at http://localhost/app/home > -app responds to a request with 302 '../home.0' > -Response.toAbsolute() rewrites Location as http://localhost/app/home/ . . > /home.0 (spaces added to avoid spam filter) What does the response actually look like to the browser? > But, if client then issues a GET with exactly that URL - and not > http://localhost/app/home.0, Tomcat will issue a 404. Which URL? > In other words, > toAbsolute() produces a URL that Tomcat cannot service. Why the asymmetry? Again, where does toAbsolute come from? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAku+NBoACgkQ9CaO5/Lv0PDlRwCfY7H0qEd2n7ecm5cx5Eoq9Bgs VbsAoKviSHois6KOMe8OKloU/UwkWE72 =WdrP -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Which native library?
I'm currently using Tomcat 5.5.17 on Windows 2000 32-bit on some servers. (I know, both old, but trying to stretch. Can upgrade tomcat soon but not soon enough.) Java dll is Sun JDK 1.6.0_18 server. I tried loading both 1.1.19 and 1.1.20 versions of the native dll, but apparently Tomcat could not find them. I got "unable to locate" errors in catalina.log and errors that it couldn't locate the .keystore file (when it should have been using the defined OpenSSL files). I have seen the "unable to locate" library errors in 5.5.28 installs with 1.1.19 & 1.1.20, but at least the OpenSSL still worked. I won't be able to upgrade Tomcat to another release for a couple of more weeks (frankly I've been waiting on 5.5.29), but would really like to get the native DLL upgraded to as recent as possible. Does anyone know which is the latest DLL version that will work with 5.5.17? *** NOTICE * This message is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient or the employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by reply or by telephone (call us collect at 512-343-9100) and immediately delete this message and all its attachments.
Tomcat 6.0.26 startup scripts changed from 6.0.18
Hi, I am trying to upgrade to 6.0.26 and noticed that the startup scripts have changed slightly. One of the issues that I am having is that the new catalina.sh startup script now checks for the existance of the CATALINA_PID file prior to starting up, and if it exists, it aborts. My problem is that I am creating my pid file in my /var/run directory, which is, by default/design, root access only. However, I launch the catalina.sh startup script under a "tomcat" user that has very limited read/write access on the system. So what my init.d script currently does is pre-create an empty pid file in the /var/run directory, then changes ownership of it to "tomcat" so that tomcat can then update it with the actual pid of the tomcat process. Given that there is no way for the startup script to write to the /var/run directory, my options are fairly limited without modifying it. 1) Change the location of the pid file. 2) Make the /var/run directory tomcat writable by default (via acl or by mode permissions) Neither option particularly appeals to me. The fastest solution I have come up with is to modify the condition in the catalina.sh script to check for the existence of a non-empty PID file, instead of just the existence of it (ie: use -s instead of -f). ie: modify the following from: if [ ! -z "$CATALINA_PID" ]; then if [ -f "$CATALINA_PID" ]; then echo "PID file ($CATALINA_PID) found. Is Tomcat still running? Start aborted." exit 1 fi fi to: if [ ! -z "$CATALINA_PID" ]; then if [ -s "$CATALINA_PID" ]; then echo "PID file ($CATALINA_PID) found. Is Tomcat still running? Start aborted." exit 1 fi fi Is there a particular reason why this would be a bad implementation? Should I submit a patch request for catalina.sh with this change? Thanks, Eric - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: URLs with '../' and 404s
Actually it was pointed out to me that it is the container & not the app/framework that is generating the Location header, and so isn't the below a bug in toAbsolute()? On Thu, Apr 8, 2010 at 8:14 AM, Nikita Tovstoles wrote: > We use Wicket that periodically redirects to relative URLs starting with > '../'. I realize that's against the RFC (which says redirects are supposed > to be absolute), but I am not clear on why doesn't Tomcat collapse those > URLs in Response.toAbsolute()? Specifically: > > -assume client is at http://localhost/app/home > -app responds to a request with 302 '../home.0' > -Response.toAbsolute() rewrites Location as http://localhost/app/home/ . > . /home.0 (spaces added to avoid spam filter) > > But, if client then issues a GET with exactly that URL - and not > http://localhost/app/home.0, Tomcat will issue a 404. In other words, > toAbsolute() produces a URL that Tomcat cannot service. Why the asymmetry? > In other words, why not collapse the '../' in toAbsolute() - and thus > produce http://localhost/app/home.0? > > thanks > -nikita >
RE: Tomcat scalability setting - need help please
Clearly instantiating millions of objects is not a strategy for scalability. You're going to have to re-structure your code to reduce the memory footprint of each session. Why is your result set returning a million rows? No human would want to see that much data. You need to restructure your queries and navigation design so that it doesn't do this. George Sexton MH Software, Inc. 303 438-9585 www.mhsoftware.com > -Original Message- > From: Cin Lung [mailto:cinl...@gmail.com] > Sent: Thursday, April 08, 2010 10:53 AM > To: 'Tomcat Users List' > Subject: RE: Tomcat scalability setting - need help please > > Hi George > > Your remark is almost correct. What I did is that I store the result of > the > resultset (which can go up to million lines of rows) in a batch of Java > beans. Then I set the beans to the HTTP Request and pass them to the > receiving JSP. > > But I do remember to return the connection to the pool. I also try to > kill > the statements, result sets, etc by setting them to null. But I realize > that > java might wait for the memory to be cleared by the garbage collector. > > This goes back to my second problem. If the user closes the browser, > the > request object form the servlet would lost its way to return the > result. And > this will hog the tomcat performance for a while. > > Any tips would greatly be appreciated. > > TIA > Rendra > > -Original Message- > From: George Sexton [mailto:geor...@mhsoftware.com] > Sent: Thursday, April 08, 2010 11:42 PM > To: 'Tomcat Users List' > Subject: RE: Tomcat scalability setting - need help please > > > > -Original Message- > > From: Pid [mailto:p...@pidster.com] > > Sent: Thursday, April 08, 2010 8:49 AM > > To: Tomcat Users List > > Subject: Re: Tomcat scalability setting - need help please > > > > When you run the query in your application how are you doing it, e.g. > > by > > calling a stored procedure, or by executing exactly the same SQL > > statement? > > > > > Most likely the application is storing result sets on the session. > > > > George Sexton > MH Software, Inc. > 303 438-9585 > www.mhsoftware.com > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat does not honor acceptCount configuration variable
You just lost me. How would this configuration look like in server.xml ? Timir On Thu, Apr 8, 2010 at 9:09 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Timir Hazarika [mailto:timir.hazar...@gmail.com] > > Subject: Re: Tomcat does not honor acceptCount configuration variable > > > > I would like tomcat to use a maximum of (say) 5 sockets on my system. > > Further connection requests should be dropped. How may I achieve that ? > > There's no direct control for the number of sockets, but you should be able > to limit the number of concurrent HTTP connections by setting maxThreads to > 5 and acceptCount to zero, and using the JIO connector or disabling > keep-alives. There will still be some additional sockets used for the > shutdown port, DB connections, etc. > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you received > this in error, please contact the sender and delete the e-mail and its > attachments from all computers. > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
Re: Avoiding random JMX port on tomcat
Ops, I thought you were referring to the same page. My fault. I would be great if that could be configured directly in the properties, like the rest of the JMX stuff. On 8 April 2010 16:58, Caldarale, Charles R wrote: >> From: emerson cargnin [mailto:echofloripa.y...@gmail.com] >> Subject: Re: Avoiding random JMX port on tomcat >> >> It is not in that page... I saw that in 5.5... > > ??? I beg to differ - what web site are you looking at? Both the US and EU > Tomcat web sites have the correct 6.0 doc, including the section on the JMX > Remote Lifecycle Listener. > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you received > this in error, please contact the sender and delete the e-mail and its > attachments from all computers. > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat scalability setting - need help please
Hi George Your remark is almost correct. What I did is that I store the result of the resultset (which can go up to million lines of rows) in a batch of Java beans. Then I set the beans to the HTTP Request and pass them to the receiving JSP. But I do remember to return the connection to the pool. I also try to kill the statements, result sets, etc by setting them to null. But I realize that java might wait for the memory to be cleared by the garbage collector. This goes back to my second problem. If the user closes the browser, the request object form the servlet would lost its way to return the result. And this will hog the tomcat performance for a while. Any tips would greatly be appreciated. TIA Rendra -Original Message- From: George Sexton [mailto:geor...@mhsoftware.com] Sent: Thursday, April 08, 2010 11:42 PM To: 'Tomcat Users List' Subject: RE: Tomcat scalability setting - need help please > -Original Message- > From: Pid [mailto:p...@pidster.com] > Sent: Thursday, April 08, 2010 8:49 AM > To: Tomcat Users List > Subject: Re: Tomcat scalability setting - need help please > > When you run the query in your application how are you doing it, e.g. > by > calling a stored procedure, or by executing exactly the same SQL > statement? > Most likely the application is storing result sets on the session. George Sexton MH Software, Inc. 303 438-9585 www.mhsoftware.com - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat scalability setting - need help please
> -Original Message- > From: Pid [mailto:p...@pidster.com] > Sent: Thursday, April 08, 2010 8:49 AM > To: Tomcat Users List > Subject: Re: Tomcat scalability setting - need help please > > When you run the query in your application how are you doing it, e.g. > by > calling a stored procedure, or by executing exactly the same SQL > statement? > Most likely the application is storing result sets on the session. George Sexton MH Software, Inc. 303 438-9585 www.mhsoftware.com - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
JSP not updated before app reload
Hi. I am working on a project and suddenly when I make a change in my JSP I have to reload my app before the code is updated in the browser. I cant think of any changes I have made that should cause this. Any idears. Soren, DK
RE: Apache Tomcat 5 does not work on port 80
Hi, Thanks for the suggestion. It resulted in PID 4 which is being used by "NT Kernel and System". I started randomly stopping services and it was being used by SQL Server Reporting Services. I'm now looking into how I can change this service's port to something other than port 80. Thanks for your help (and Peter) for pointing me in the right direction. All the best, -sul. -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Thursday, April 08, 2010 11:53 AM To: Tomcat Users List Subject: RE: Apache Tomcat 5 does not work on port 80 > From: Sulaiman Paperwalla [mailto:s...@fiu.edu] > Subject: RE: Apache Tomcat 5 does not work on port 80 > > I did netstat -a but it does not tell me the application that is > listening on port 80; Use netstat -ano, note the pid, and look it up in Task Manager. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Avoiding random JMX port on tomcat
> From: emerson cargnin [mailto:echofloripa.y...@gmail.com] > Subject: Re: Avoiding random JMX port on tomcat > > It is not in that page... I saw that in 5.5... ??? I beg to differ - what web site are you looking at? Both the US and EU Tomcat web sites have the correct 6.0 doc, including the section on the JMX Remote Lifecycle Listener. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Apache Tomcat 5 does not work on port 80
On 8 April 2010 16:52, Caldarale, Charles R wrote: > Use netstat -ano, note the pid, and look it up in Task Manager. > > tcpview (http://technet.microsoft.com/en-us/sysinternals/bb897437.aspx) should give you the process directly, but Chuck's suggestion is less invasive :-). - Peter
Re: Avoiding random JMX port on tomcat
It is not in that page... I saw that in 5.5... On 8 April 2010 16:51, Caldarale, Charles R wrote: >> From: emerson cargnin [mailto:echofloripa.y...@gmail.com] >> Subject: Avoiding random JMX port on tomcat >> >> I want to configure JMX on our servers, but I am having problems as >> JMX opens a second random port. >> >> Is there anyway to do this on tomcat 6? > > Looks like it's still there to me: > http://tomcat.apache.org/tomcat-6.0-doc/config/listeners.html > > Scroll down to the JMX Remote Lifecycle Listener section. > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you received > this in error, please contact the sender and delete the e-mail and its > attachments from all computers. > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Apache Tomcat 5 does not work on port 80
> From: Sulaiman Paperwalla [mailto:s...@fiu.edu] > Subject: RE: Apache Tomcat 5 does not work on port 80 > > I did netstat -a but it does not tell me the application that is > listening on port 80; Use netstat -ano, note the pid, and look it up in Task Manager. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
RE: Avoiding random JMX port on tomcat
> From: emerson cargnin [mailto:echofloripa.y...@gmail.com] > Subject: Avoiding random JMX port on tomcat > > I want to configure JMX on our servers, but I am having problems as > JMX opens a second random port. > > Is there anyway to do this on tomcat 6? Looks like it's still there to me: http://tomcat.apache.org/tomcat-6.0-doc/config/listeners.html Scroll down to the JMX Remote Lifecycle Listener section. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Apache Tomcat 5 does not work on port 80
Thanks! I did netstat -a but it does not tell me the application that is listening on port 80; I always assumed it was tomcat but I don't know for sure. Sorry I'm a newbie. Here is partial result of netstat -a: Active Connections Proto Local Address Foreign AddressState TCP0.0.0.0:80 ocean:0LISTENING TCP0.0.0.0:135ocean:0LISTENING TCP0.0.0.0:445ocean:0LISTENING TCP0.0.0.0:1311 ocean:0LISTENING TCP0.0.0.0:1433 ocean:0LISTENING TCP0.0.0.0:2382 ocean:0LISTENING TCP0.0.0.0:3389 ocean:0LISTENING TCP0.0.0.0:8081 ocean:0LISTENING TCP0.0.0.0:49152 ocean:0LISTENING TCP0.0.0.0:49153 ocean:0LISTENING TCP0.0.0.0:49154 ocean:0LISTENING TCP0.0.0.0:49159 ocean:0LISTENING TCP0.0.0.0:49196 ocean:0LISTENING TCP0.0.0.0:49211 ocean:0LISTENING TCP0.0.0.0:49542 ocean:0LISTENING TCP127.0.0.1:8005 ocean:0LISTENING TCP127.0.0.1:49547ocean:0LISTENING TCP131.94.70.192:139 ocean:0LISTENING -Original Message- From: Gregor Schneider [mailto:rc4...@googlemail.com] Sent: Thursday, April 08, 2010 11:42 AM To: Tomcat Users List Subject: Re: Apache Tomcat 5 does not work on port 80 You can telnet port 80 without any problems? Well, that means there's some application running using port 80, otherwise you wouldn't be able to telnet on port 80. What gives "netstat -a"? Rgds Gregor -- just because you're paranoid, don't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 @ http://pgp.mit.edu:11371/ skype:rc46fi - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Apache Tomcat 5 does not work on port 80
Thanks! IIS is not running on this machine. I checked the logs and they are virtually blank. The logs I checked were jacarta_service_, stderr, and stdout log files. I am using tomcat 5 because the application I am using is not supporting a higher version yet. I am working with the vendor on this but it will take some time but for the time being I'm stuck with 5.0. Let me know if you have any other suggestions I can try. Thanks for your response! -sul. -Original Message- From: peter.crowth...@googlemail.com [mailto:peter.crowth...@googlemail.com] On Behalf Of Peter Crowther Sent: Thursday, April 08, 2010 11:38 AM To: Tomcat Users List Subject: Re: Apache Tomcat 5 does not work on port 80 Check you don't already have IIS running on port 80. If you look in Tomcat's logs, there should be a bind exception if that's the case. Is there any reason you're using 5.0? It's very old, and is no longer supported. This means that, for example, it has known security holes and they will never be fixed. - Peter On 8 April 2010 16:33, Sulaiman Paperwalla wrote: > Hi, > > > > I have tomcat 5.0 installed on a windows server 2008 machine. Tomcat is > the > only web server installed. When I change the port to anything other than > port 80, for example 8080, I can successfully access the website, but it > does not work for Port 80. I have made sure the port is open in the > firewall and I can remotely telnet to port 80 with not problems. Any > suggestions on what I should be testing to resolve this problem? I am a > newbie to Tomcat. Thanks!! Here is the server.xml: > > > > > > > > > > > > > > > > > > > maxThreads="150" minSpareThreads="25" maxSpareThreads="75" > > enableLookups="true" redirectPort="8443" acceptCount="100" > > debug="0" connectionTimeout="2" URIEncoding="utf-8" > > disableUploadTimeout="true" /> > > > > > > > enableLookups="true" debug="0" > > protocol="AJP/1.3" URIEncoding="utf-8" /> > > > > > > > > > > > prefix="catalina_log." suffix=".txt" > > timestamp="true"/> > > > > > > directory="D:\Program Files (x86)\NetXposure\ImagePortal\WEB-INF\logs" > prefix="access." suffix=".txt" pattern="combined" resolveHosts="true" /> > > directory="D:\Program Files (x86)\NetXposure\ImagePortal\WEB-INF\logs" > prefix="debug." suffix=".txt" timestamp="true"/> > > "true"/> > > > > > > > > > > > > > > > > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Avoiding random JMX port on tomcat
Hi I want to configure JMX on our servers, but I am having problems as JMX opens a second random port. In tomcat 5.5 there was a way to override that port. Is there anyway to do this on tomcat 6? >From here: http://tomcat.apache.org/tomcat-6.0-doc/monitoring.html#Enabling%20JMX%20Remote Note:The JSR 160 JMX-Adaptor opens a second data channel on a random port. That is a problem when you have a local firewall installed. Is there any easy way to override it? Regards Emerson - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Apache Tomcat 5 does not work on port 80
You can telnet port 80 without any problems? Well, that means there's some application running using port 80, otherwise you wouldn't be able to telnet on port 80. What gives "netstat -a"? Rgds Gregor -- just because you're paranoid, don't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 @ http://pgp.mit.edu:11371/ skype:rc46fi - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat does not honor acceptCount configuration variable
> From: Timir Hazarika [mailto:timir.hazar...@gmail.com] > Subject: Re: Tomcat does not honor acceptCount configuration variable > > I would like tomcat to use a maximum of (say) 5 sockets on my system. > Further connection requests should be dropped. How may I achieve that ? There's no direct control for the number of sockets, but you should be able to limit the number of concurrent HTTP connections by setting maxThreads to 5 and acceptCount to zero, and using the JIO connector or disabling keep-alives. There will still be some additional sockets used for the shutdown port, DB connections, etc. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Apache Tomcat 5 does not work on port 80
Check you don't already have IIS running on port 80. If you look in Tomcat's logs, there should be a bind exception if that's the case. Is there any reason you're using 5.0? It's very old, and is no longer supported. This means that, for example, it has known security holes and they will never be fixed. - Peter On 8 April 2010 16:33, Sulaiman Paperwalla wrote: > Hi, > > > > I have tomcat 5.0 installed on a windows server 2008 machine. Tomcat is > the > only web server installed. When I change the port to anything other than > port 80, for example 8080, I can successfully access the website, but it > does not work for Port 80. I have made sure the port is open in the > firewall and I can remotely telnet to port 80 with not problems. Any > suggestions on what I should be testing to resolve this problem? I am a > newbie to Tomcat. Thanks!! Here is the server.xml: > > > > > > > > > > > > > > > > > > > maxThreads="150" minSpareThreads="25" maxSpareThreads="75" > > enableLookups="true" redirectPort="8443" acceptCount="100" > > debug="0" connectionTimeout="2" URIEncoding="utf-8" > > disableUploadTimeout="true" /> > > > > > > > enableLookups="true" debug="0" > > protocol="AJP/1.3" URIEncoding="utf-8" /> > > > > > > > > > > > prefix="catalina_log." suffix=".txt" > > timestamp="true"/> > > > > > > directory="D:\Program Files (x86)\NetXposure\ImagePortal\WEB-INF\logs" > prefix="access." suffix=".txt" pattern="combined" resolveHosts="true" /> > > directory="D:\Program Files (x86)\NetXposure\ImagePortal\WEB-INF\logs" > prefix="debug." suffix=".txt" timestamp="true"/> > > "true"/> > > > > > > > > > > > > > > > >
Apache Tomcat 5 does not work on port 80
Hi, I have tomcat 5.0 installed on a windows server 2008 machine. Tomcat is the only web server installed. When I change the port to anything other than port 80, for example 8080, I can successfully access the website, but it does not work for Port 80. I have made sure the port is open in the firewall and I can remotely telnet to port 80 with not problems. Any suggestions on what I should be testing to resolve this problem? I am a newbie to Tomcat. Thanks!! Here is the server.xml:
Re: Tomcat does not honor acceptCount configuration variable
Chuck, I would like tomcat to use a maximum of (say) 5 sockets on my system. Further connection requests should be dropped. How may I achieve that ? > The acceptCount is the value used by the platform's TCP/IP stack > to limit the number of HTTP connection requests held in a queue. > The number actually in the queue at any given time is invisible to > Tomcat. Which API is consumed by tomcat to relay the parameter to platform ? Timir
URLs with '../' and 404s
We use Wicket that periodically redirects to relative URLs starting with '../'. I realize that's against the RFC (which says redirects are supposed to be absolute), but I am not clear on why doesn't Tomcat collapse those URLs in Response.toAbsolute()? Specifically: -assume client is at http://localhost/app/home -app responds to a request with 302 '../home.0' -Response.toAbsolute() rewrites Location as http://localhost/app/home/ . . /home.0 (spaces added to avoid spam filter) But, if client then issues a GET with exactly that URL - and not http://localhost/app/home.0, Tomcat will issue a 404. In other words, toAbsolute() produces a URL that Tomcat cannot service. Why the asymmetry? In other words, why not collapse the '../' in toAbsolute() - and thus produce http://localhost/app/home.0? thanks -nikita
Re: Junit and Tomcat
In some cases, I've dealt with the datasources problem in testing by make use of a standalone connection pool, such as the opensource Primrose (http://www.primrose.org.uk/, which has worked well for me. --Ken On Apr 8, 2010, at 10:42 AM, Malcolm Warren wrote: Thank you for your reply. I'm more interested in testing common java classes: e.g. beans being used by .jsp files, but these java classes depend heavily on two things provided by Tomcat in its own virtual machine which Junit can't get at. 1) datasources 2) file paths regards, Malcolm Il 08/04/10 16.01, Gregor Schneider ha scritto: What do you wnat to test specifically? JSPs? Servlets? or just some common Java classes being used by a Servlet / JSP? Rgds Gregor - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Junit and Tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, http://memoryjndi.sourceforge.net/ On 4/8/2010 10:49 AM, Christopher Schultz wrote: > Malcolm, > > On 4/8/2010 9:08 AM, Malcolm Warren wrote: >> I've been going round in circles for about two weeks now trying to work >> out how to use Junit with Tomcat effectively. > > Are you trying to test your webapp via it's /web/ interface, or are you > trying to test individual components via pure Java calls? > >> 1) I get my datasources from Tomcat, so I can't get to them from Junit > > You probably get your DataSources from JNDI, not Tomcat (though Tomcat > does populate the JNDI context for you). There's a tool that I can't > seem to find right now that basically provides a simple JNDI context > that you can stuff full of data in your setUp method. In lieu of that, > try reading some of these pages: > > http://www.coderanch.com/t/96030/Testing/Unit-testing-testing-JNDI-lookups > > http://ericholsinger.com/programming/java/junit-testing-jndi-datasources-thinking-outside-of-the-container/ > > Maybe most useful: > http://commons.apache.org/dbcp/guide/jndi-howto.html > >> 2) I get the path in the file system to my Tomcat folder from Tomcat, >> which is very convenient, but in consequence every path to a file in my >> code depends on this. > > Do you mean that you use ServletContext.getRealPath or something similar? > >> For example I'm trying to test a method which uses a value from a >> property file, but I can't do it, because the Junit test can't find the >> property file path. > > How do you get the file path? > >> Searching the web again and again has brought up very little except Cactus. >> Cactus on paper looks like a good idea, but Cactus has a very low >> profile in google searches, which possibly means it is not used much. > > There's also HttpUnit if you want to test using HTTP calls. > >> But more important is the fact that it doesn't appear to be supported >> any more since it uses an old version of Junit without annotations, and >> I'm already used to the new version. > > IIRC, JUnit is very backward-compatible with itself. > >> I could probably code round the problem: but the recoding - just so that >> I can test things effectively - will be enormous. > > We got around the problem by putting our DataSource acquisition into a > separate class, something like this: > > public interface ConnectionFactory > { >public Connection getConnection() throws AppException; > } > > public class JNDIConnectionFactory > { > public Connection getConnection() > { > InitialContext ctx = new InitialContext(); > .. > > return ds.getConnection(); > } > } > > public class BaseService > { > public static void setConnectionFactory(ConnectionFactory cf) { ... } > public static ConnectionFactory getConnectionFactory() { ... } > > public Connection getConnection() > { > return getConnectionFactory().getConnection(); > } > } > > public class MyActualService > extends BaseService > { > public List getFoos() > { > Connection conn = getConnection(); > .. > return foos; > } > } > > This allows us to run tests like this: > > public void setUp() > { > Connection conn = DriverManager.getConnection(...); > BaseService.setConnectionFactory(new SimpleConnectionFactory(conn)); > } > > or, if we want to skip the database altogether (which is usually the case): > > public void setUp() > { > Connection conn = new FakeJDBCConnection(); > BaseService.setConnectionFactory(new SimpleConnectionFactory(conn)); > } > > By moving all our JNDI code into the JNDIConnectionFactory class, we > avoid lots of JNDI code in other places, and also gain the flexibility > of being able to swap-in code that gets JDBC Connection objects in other > ways. > > Still, I /swear/ that there's a simple standalone JNDI provider out > there somewhere... > > -chris - - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAku97akACgkQ9CaO5/Lv0PCccQCgqURuOkVtWz5ezaoJ8pk6Lxx2 xXEAn2a+LPXI5Sdv6F9fmX/Vrb/w36Um =eFbl -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat scalability setting - need help please
On 08/04/2010 12:19, Cin Lung wrote: Hi Pid My task is a web-based ERP application. It uses database and the number of user connection to it is up to 200 users. I use MySQL for the database. Please post your DB config from server.xml, passwords should be omitted. I apply the -xmx1024m and -xms1024m because I once got a message about Java Heap Out Of Space, so I searched the web and some people suggested that settings and it worked... for a while. Now that the amount of data is increased and the user using the app increased as well, lagging has been happening. You can use VisualVM and JConsole to examine the running JVM. Find out what is actually going on inside your application before you fiddle with settings again. Increasing the amount of memory can sometimes hide a memory leak, for example by not properly returning a database connection to a pool. The settings above I set it in the Tomcat Service monitor. And yes, I also set tomcat as service. So when you said, "it didn't make any difference" did you mean that the settings weren't applied, or that they were but things haven't improved? It's running 32 Bit windows 2003 only With 8GB Ram. The tomcat version is 6.0.14. The current version is 6.0.24. Upgrading is a good idea. I am not assuming either tomcat is the problem or my software. I am merely trying to find a way out and I have exhausted my resources to make the software as fast as possible. Tomcat setting is the only thing that I have not explore extensively since I am not as expert as you guys. Maybe I can learn a tip or two to make things better. I would say that 99% of the tweakable performance is related to your application and 1% is with Tomcat. You need to establish if there's a bottleneck, and if so, where it is. By the way the number of data that is being processed by the heavy app is in millions of rows. I ran the SQL directly to the mysql server and it worked ok (within minutes and not freezing the server). Meanwhile, when the query is being run via tomcat, then it will freeze the server as well. It does not kill the server, just consume all the server resources, but eventually will come back to normal after two hours with the result. So a single query is using up all the resources on the server? Is the database running on the same server as Tomcat? When you run the query in your application how are you doing it, e.g. by calling a stored procedure, or by executing exactly the same SQL statement? Thanks Rendra -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Thursday, April 08, 2010 4:56 PM To: Tomcat Users List Subject: Re: Tomcat scalability setting - need help please On 08/04/2010 10:00, Cin Lung wrote: Dear All Dev Sorry if repost, I got an error from the mailing list server. Can anyone help me with my problem? I have two biggest problems as follow: > 1. Multi Connection Problem: I have a web application that service to multiple users. Everytime the users accessing the server reach 100 users at the same time, the tomcat would slows down. What does your app do? What tasks is it performing? Does it use a database? I tried to set -xmx1024 and -xms1024, but it did not have any impact at all. Where did you apply those settings? Is Tomcat installed as a service? I tried to set the memory cache to 2048 and above, but the tomcat won't start. Where did you apply that setting? My current server is running AMD Athlon 64 3000+ with 8GB memory running windows server 2003 SP1. Is it running 64bit Windows? I am running tomcat 6 for the app server. Exactly which version of Tomcat 6.0.NN? Before upgrading to Windows 2003 SP1 I also had the same problem. I thought by upgrading would make a difference, but it didn't. What makes you think Tomcat and not your application is the source of your problem? If upgrading the server doesn't make a difference, perhaps this points to something that isn't affected by the processing power of the server as the source of the problem. Is there any way to improve tomcat's performance? It is possible to tune Tomcat, but in the vast majority of cases the application is the problem. Tomcat is used in many high-load situations with great success. Will there be any use of Java NIO Framework in tomcat? There is the NIO Connector. It's not guaranteed to make a difference as the usual source of the problem is in the application. I mean apache has Mina, why not combine with tomcat? Assuming there's anything wrong with Tomcat, which many people here would disagree with. 2. User cancellation problem Another thing that really bug me is that user would click on a web application that perform a very extensive task. The user was not patient and just close the browser accessing the app. This did not make that particular job stop. In fact the job is still running until finish and then it got no place to return the result since the user closed the browser. As the result, m
Re: Junit and Tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Malcolm, On 4/8/2010 9:08 AM, Malcolm Warren wrote: > I've been going round in circles for about two weeks now trying to work > out how to use Junit with Tomcat effectively. Are you trying to test your webapp via it's /web/ interface, or are you trying to test individual components via pure Java calls? > 1) I get my datasources from Tomcat, so I can't get to them from Junit You probably get your DataSources from JNDI, not Tomcat (though Tomcat does populate the JNDI context for you). There's a tool that I can't seem to find right now that basically provides a simple JNDI context that you can stuff full of data in your setUp method. In lieu of that, try reading some of these pages: http://www.coderanch.com/t/96030/Testing/Unit-testing-testing-JNDI-lookups http://ericholsinger.com/programming/java/junit-testing-jndi-datasources-thinking-outside-of-the-container/ Maybe most useful: http://commons.apache.org/dbcp/guide/jndi-howto.html > 2) I get the path in the file system to my Tomcat folder from Tomcat, > which is very convenient, but in consequence every path to a file in my > code depends on this. Do you mean that you use ServletContext.getRealPath or something similar? > For example I'm trying to test a method which uses a value from a > property file, but I can't do it, because the Junit test can't find the > property file path. How do you get the file path? > Searching the web again and again has brought up very little except Cactus. > Cactus on paper looks like a good idea, but Cactus has a very low > profile in google searches, which possibly means it is not used much. There's also HttpUnit if you want to test using HTTP calls. > But more important is the fact that it doesn't appear to be supported > any more since it uses an old version of Junit without annotations, and > I'm already used to the new version. IIRC, JUnit is very backward-compatible with itself. > I could probably code round the problem: but the recoding - just so that > I can test things effectively - will be enormous. We got around the problem by putting our DataSource acquisition into a separate class, something like this: public interface ConnectionFactory { public Connection getConnection() throws AppException; } public class JNDIConnectionFactory { public Connection getConnection() { InitialContext ctx = new InitialContext(); .. return ds.getConnection(); } } public class BaseService { public static void setConnectionFactory(ConnectionFactory cf) { ... } public static ConnectionFactory getConnectionFactory() { ... } public Connection getConnection() { return getConnectionFactory().getConnection(); } } public class MyActualService extends BaseService { public List getFoos() { Connection conn = getConnection(); .. return foos; } } This allows us to run tests like this: public void setUp() { Connection conn = DriverManager.getConnection(...); BaseService.setConnectionFactory(new SimpleConnectionFactory(conn)); } or, if we want to skip the database altogether (which is usually the case): public void setUp() { Connection conn = new FakeJDBCConnection(); BaseService.setConnectionFactory(new SimpleConnectionFactory(conn)); } By moving all our JNDI code into the JNDIConnectionFactory class, we avoid lots of JNDI code in other places, and also gain the flexibility of being able to swap-in code that gets JDBC Connection objects in other ways. Still, I /swear/ that there's a simple standalone JNDI provider out there somewhere... - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAku97PAACgkQ9CaO5/Lv0PCLygCfUTJobGog6Gc4y1iIXpp4Q0+j c2MAoI7BLNr6HmZTlmvuZAIh0+lcK60z =xpkm -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Junit and Tomcat
Thank you for your reply. I'm more interested in testing common java classes: e.g. beans being used by .jsp files, but these java classes depend heavily on two things provided by Tomcat in its own virtual machine which Junit can't get at. 1) datasources 2) file paths regards, Malcolm Il 08/04/10 16.01, Gregor Schneider ha scritto: What do you wnat to test specifically? JSPs? Servlets? or just some common Java classes being used by a Servlet / JSP? Rgds Gregor
Re: Tomcat with NIO???
Sorry about the importance level again - completely forgotten. I got used to press ctrl-s for quick send email :) GOD is GREAT! -Original Message- From: "Caldarale, Charles R" Date: Thu, 8 Apr 2010 08:16:57 To: Tomcat Users List Subject: RE: Tomcat with NIO??? > From: Cin Lung [mailto:cinl...@gmail.com] > Subject: RE: Tomcat with NIO??? > Importance: High Hmmm... you seem to have forgotten to turn off the high importance setting - again. It's rather annoying. > Which setting should I use for my server.xml to get better performance > under heavy duty job The only real way to tell is to benchmark with *your* applications. Generalizations are fraught with error. You can search the archives for several fairly recent benchmark reports - but they're all for specific purposes, not your particular webapps. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Strange memory-behaviour using Tomcat Native
> From: Gregor Schneider [mailto:rc4...@googlemail.com] > Subject: Re: Strange memory-behaviour using Tomcat Native > > That means, for those "administrative" stuff in the first example less > than 100M is used, but in the 2nd example it's more than double the > size - is such a common behaviour? The virtual memory numbers you're looking at are all "funny money" - just space that's reserved, not necessarily being used. What the OS chooses to allocate for each thread (along with what the JVM grabs) is not readily controllable, and that has to be added to space for the code, C heap, file mappings, etc., that Mark already referred to. There's really not any point in worrying about this. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
Re: Junit and Tomcat
What do you wnat to test specifically? JSPs? Servlets? or just some common Java classes being used by a Servlet / JSP? Rgds Gregor -- just because you're paranoid, don't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 @ http://pgp.mit.edu:11371/ skype:rc46fi - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Strange memory-behaviour using Tomcat Native
Hi Mark, On Thu, Apr 8, 2010 at 1:48 PM, Mark Thomas wrote: > On 08/04/2010 12:12, Gregor Schneider wrote: >> Anybody has an idea what I might be missing here? > > That Java Heap Space + Perm Gen Space < OS process Space > > You are missing the memory used for: > - native code > - gc > - thread stacks > I'd agree to that, however, somehow it suprises me that almost 1/2 a GB is used for native, gc, threads & stuff - wasn't aware that it is that much, specifically, that the memory-usage of said components seems to be increasing even further when enhancing Xmx / Xmx. Example: When using Xms/Xmx = 512M, MaxpermSize=384M, then the overall footprint is a bit less than 1GB When using Xmx/Xmx=1GB, MaxpermSize=384M, the overall footprint is 1.6GB. That means, for those "administrative" stuff in the first example less than 100M is used, but in the 2nd example it's more than double the size - is such a common behaviour? Rgds Gregor -- just because you're paranoid, don't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 @ http://pgp.mit.edu:11371/ skype:rc46fi - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat with NIO???
> From: Cin Lung [mailto:cinl...@gmail.com] > Subject: RE: Tomcat with NIO??? > Importance: High Hmmm... you seem to have forgotten to turn off the high importance setting - again. It's rather annoying. > Which setting should I use for my server.xml to get better performance > under heavy duty job The only real way to tell is to benchmark with *your* applications. Generalizations are fraught with error. You can search the archives for several fairly recent benchmark reports - but they're all for specific purposes, not your particular webapps. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat 6.0.24 requires me to log on twice
Hi, I am having a problem with Tomcat - if I log on to a page which contains a restricted resource, it shows me the page (and any unrestricted images, etc), but doesn't show the restricted resource (I believe tomcat thinks the user is not authenticated as sends the 403 page, judging by the 3478b size of the request). When I move on to another page (or reload the same page) I am sent to the logon screen again, after I logon from here everything works as it should. The protected resource is some javascript, it is dynamically created as it varies from user to user. This happens on Tomcat 6.0.24 and 6.0.26, but not 6.0.20, which makes me think it is related to change 45255 (Provide protection against session fixation by changing session ID automatically on authentication.), in the dev environment tomcat is running on windows XP. Session tracking is done by cookie, not URL rewriting. Below is a(n abridged) snapshot of the access log, the last field is the cookie sent by the browser dataservlet1, dataservlet2 and javascriptservlet are restricted to logged on users, nothing under /frontend has any security constraints. The sequence of events, from the browser end is (1) A request is made to dataservlet1 (2) The user logs in (and tomcat rewrites the cookie) (3) Is forwarded to the dataservlet1 page, frontend resources are displayed, but the javascriptservlet is not, as it has been requested with the old cookie (this happens on ie and firefox, so doesn't appear to be a browser issue), the apparent attempt to logon for the javascriptservlet also throws another cookie into the mix (4) Another page is requested (5) The user is sent to the login page (6) They log in again (getting a third cookie), and from this point everything is ok #Fields: c-dns x-H(remoteUser) date time x-H(protocol) cs-method cs-uri sc-status bytes x-H(requestedSessionId) #Version: 2.0 #Software: Apache Tomcat/6.0.26 (1) localhost - 2010-04-08 12:25:33 'HTTP/1.1' GET /dataservlet1?timestamp=1205168884309 200 3478 - localhost - 2010-04-08 12:25:33 'HTTP/1.1' GET /frontend/images/image1.gif 200 125 '6A193109AA' (2) localhost - 2010-04-08 12:25:42 'HTTP/1.1' POST /j_security_check 302 - '6A193109AA' localhost - 2010-04-08 12:25:42 'HTTP/1.1' POST /j_security_check 302 - '6A193109AA' (3) localhost 'user75' 2010-04-08 12:25:46 'HTTP/1.1' GET /dataservlet1?timestamp=1205168884309 200 22904 '949F3A1AED' localhost - 2010-04-08 12:25:46 'HTTP/1.1' GET /frontend/includes/functions.js 200 917 '6A193109AA' localhost - 2010-04-08 12:25:46 'HTTP/1.1' GET /javascriptservlet?request=common.js 200 3478 '6A193109AA' localhost - 2010-04-08 12:25:50 'HTTP/1.1' GET /frontend/images/global/logo.gif 200 2393 'DE52CCEEE3' (4) localhost - 2010-04-08 12:26:04 'HTTP/1.1' GET /dataservlet2?timestamp=1270729564199 200 3478 'DE52CCEEE3' localhost - 2010-04-08 12:26:04 'HTTP/1.1' GET /frontend/images/image2.gif 200 125 'DE52CCEEE3' (5) localhost - 2010-04-08 12:26:07 'HTTP/1.1' POST /j_security_check 302 - 'DE52CCEEE3' localhost - 2010-04-08 12:26:07 'HTTP/1.1' POST /j_security_check 302 - 'DE52CCEEE3' (6) localhost 'user75' 2010-04-08 12:26:09 'HTTP/1.1' GET /frontend/global.css 200 3032 'D2092750B2' localhost 'user75' 2010-04-08 12:26:09 'HTTP/1.1' GET /dataservlet2?timestamp=1270729564199 200 22921 'D2092750B2' localhost 'user75' 2010-04-08 12:26:09 'HTTP/1.1' GET /frontend/includes/functions.css 200 9707 'D2092750B2' localhost 'user75' 2010-04-08 12:26:09 'HTTP/1.1' GET /javascriptservlet?request=common.js 200 5237 'D2092750B2' Other than moving the dynamically generated javascript into the main body of the page, is there a way I can stop this from happening? Terry ___ The information contained in this message is confidential and is intended for the addressee only. If you have received this message in error or there are any problems please notify the originator immediately. The unauthorised use, disclosure, copying or alteration of this message is strictly forbidden. This mail and any attachments have been scanned for viruses prior to leaving the Dancerace network. Dancerace plc will not be liable for direct, special, indirect or consequential damages arising from the alteration of the contents of this message by a third party or as a result of any virus being passed on. Dancerace plc reserve the right to monitor and record e-mail messages sent to and from this address for the purpose of investigating or detecting any unauthorised use of its system and ensuring its effective operation. _ This message has been checked for all known viruses by UUNET delivered through the MessageLabs Virus Control Centre. For further information visit http://www.uk.uu.net/products/security/virus/** Message from InterScan VirusWall 6 ** ** No virus found in attached file noname.htm ** No virus found in attached f
Junit and Tomcat
Dear All, I've been going round in circles for about two weeks now trying to work out how to use Junit with Tomcat effectively. Any help or advice about how to do this would be very much appreciated. The main problems are probably well known, but what does everyone else do about it? But the odd part is that there's very little about all this to be found on the internet. 1) I get my datasources from Tomcat, so I can't get to them from Junit 2) I get the path in the file system to my Tomcat folder from Tomcat, which is very convenient, but in consequence every path to a file in my code depends on this. For example I'm trying to test a method which uses a value from a property file, but I can't do it, because the Junit test can't find the property file path. Searching the web again and again has brought up very little except Cactus. Cactus on paper looks like a good idea, but Cactus has a very low profile in google searches, which possibly means it is not used much. But more important is the fact that it doesn't appear to be supported any more since it uses an old version of Junit without annotations, and I'm already used to the new version. I could probably code round the problem: but the recoding - just so that I can test things effectively - will be enormous. Thanks for any help with this. Regards, Malcolm Warren
RE: Tomcat with NIO???
Let me rephrase: Which setting should I use for my server.xml to get better performance under heavy duty job (and under light duty as well if posible to get both): Or the standard setting that comes with tomcat installation: Mark: can you point any site that shows benchmark result for both protocol above? In the mean time I will read the doc that Mark gave to me. Thanks -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Thursday, April 08, 2010 7:45 PM To: Tomcat Users List Subject: Re: Tomcat with NIO??? On 08/04/2010 13:41, Cin Lung wrote: > Oooohhh... I just found out that the protocol is bundled inside > tomcat-coyote.jar. I never looked into the tomcat lib folder. > > Has anyone benchmark which protocol is better performance? Yes. > The Http11NioProtocol or Http/1.1? That question makes no sense. NIO is an implementation of HTTP/1.1 Mark > > Thanks > Rendra > > -Original Message- > From: Mark Thomas [mailto:ma...@apache.org] > Sent: Thursday, April 08, 2010 6:54 PM > To: Tomcat Users List > Subject: Re: Tomcat with NIO??? > > On 08/04/2010 12:50, Cin Lung wrote: >> Is this real? > Yes. > >> I found this tomcat setting from the following site: >> http://www.javalobby.org/java/forums/t92965.html >> >> Here is the setting (see the higlighted part): >> protocol="org.apache.coyote.http11.Http11NioProtocol" >> maxThreads="150" connectionTimeout="2" acceptorThreadCount="2" >> redirectPort="8443" socket.directBuffer="false"/> >> >> Is this mean that there is a tomcat version that uses NIO? > No there isn't a version of Tomcat that uses NIO. There are many > versions thast use it and have done for a number of years. > >> Or maybe is this a tweak? > No. > >> Any comments. > Try reading the documentation, starting with this: > http://tomcat.apache.org/tomcat-6.0-doc/config/http.html > > Mark > > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat does not honor acceptCount configuration variable
> From: Timir Hazarika [mailto:timir.hazar...@gmail.com] > Subject: Tomcat does not honor acceptCount configuration variable > > What is the best way to limit connections in tomcat, if there is one ? Somewhat depends on what you think "connection" means. If you're actually referring to sessions, you'll have to limit that based on logic in your webapp, usually implemented in an HttpSessionListener (read the servlet spec for how to configure one). > I have tried acceptCount The acceptCount is the value used by the platform's TCP/IP stack to limit the number of HTTP connection requests held in a queue. The number actually in the queue at any given time is invisible to Tomcat. > maxThreads The maxThreads settings limits the number of requests that Tomcat will handle concurrently. For the JIO , that's also the number of active HTTP connections using keep-alive, since there's a thread dedicated to each active connection. For the NIO and APR connectors, threads are not dedicated to HTTP connections, so it's purely the concurrent request limit. > explicit executor This is simply a way of sharing a thread pool across multiple elements, nothing more. So what exactly are you trying to limit? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat with NIO???
On 08/04/2010 13:41, Cin Lung wrote: > Oooohhh... I just found out that the protocol is bundled inside > tomcat-coyote.jar. I never looked into the tomcat lib folder. > > Has anyone benchmark which protocol is better performance? Yes. > The Http11NioProtocol or Http/1.1? That question makes no sense. NIO is an implementation of HTTP/1.1 Mark > > Thanks > Rendra > > -Original Message- > From: Mark Thomas [mailto:ma...@apache.org] > Sent: Thursday, April 08, 2010 6:54 PM > To: Tomcat Users List > Subject: Re: Tomcat with NIO??? > > On 08/04/2010 12:50, Cin Lung wrote: >> Is this real? > Yes. > >> I found this tomcat setting from the following site: >> http://www.javalobby.org/java/forums/t92965.html >> >> Here is the setting (see the higlighted part): >> protocol="org.apache.coyote.http11.Http11NioProtocol" >> maxThreads="150" connectionTimeout="2" acceptorThreadCount="2" >> redirectPort="8443" socket.directBuffer="false"/> >> >> Is this mean that there is a tomcat version that uses NIO? > No there isn't a version of Tomcat that uses NIO. There are many versions > thast use it and have done for a number of years. > >> Or maybe is this a tweak? > No. > >> Any comments. > Try reading the documentation, starting with this: > http://tomcat.apache.org/tomcat-6.0-doc/config/http.html > > Mark > > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat with NIO???
Oooohhh... I just found out that the protocol is bundled inside tomcat-coyote.jar. I never looked into the tomcat lib folder. Has anyone benchmark which protocol is better performance? The Http11NioProtocol or Http/1.1? Thanks Rendra -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Thursday, April 08, 2010 6:54 PM To: Tomcat Users List Subject: Re: Tomcat with NIO??? On 08/04/2010 12:50, Cin Lung wrote: > Is this real? Yes. > I found this tomcat setting from the following site: > http://www.javalobby.org/java/forums/t92965.html > > Here is the setting (see the higlighted part): > maxThreads="150" connectionTimeout="2" acceptorThreadCount="2" > redirectPort="8443" socket.directBuffer="false"/> > > Is this mean that there is a tomcat version that uses NIO? No there isn't a version of Tomcat that uses NIO. There are many versions thast use it and have done for a number of years. > Or maybe is this a tweak? No. > Any comments. Try reading the documentation, starting with this: http://tomcat.apache.org/tomcat-6.0-doc/config/http.html Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Regarding thread hi-jacking
And that too. -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Thursday, April 08, 2010 7:25 PM To: Tomcat Users List Subject: RE: Regarding thread hi-jacking > From: Cin Lung [mailto:cinl...@gmail.com] > Subject: Regarding thread hi-jacking > Importance: High > > I learn new rule today. Please be patient with me and I will submit my > question again using new thread. And stop setting high importance as well, please. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Regarding thread hi-jacking
> From: Cin Lung [mailto:cinl...@gmail.com] > Subject: Regarding thread hi-jacking > Importance: High > > I learn new rule today. Please be patient with me and I will submit my > question again using new thread. And stop setting high importance as well, please. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat with NIO???
On 08/04/2010 12:50, Cin Lung wrote: > Is this real? Yes. > I found this tomcat setting from the following site: > http://www.javalobby.org/java/forums/t92965.html > > Here is the setting (see the higlighted part): > maxThreads="150" connectionTimeout="2" acceptorThreadCount="2" > redirectPort="8443" socket.directBuffer="false"/> > > Is this mean that there is a tomcat version that uses NIO? No there isn't a version of Tomcat that uses NIO. There are many versions thast use it and have done for a number of years. > Or maybe is this a tweak? No. > Any comments. Try reading the documentation, starting with this: http://tomcat.apache.org/tomcat-6.0-doc/config/http.html Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat with NIO???
Is this real? I found this tomcat setting from the following site: http://www.javalobby.org/java/forums/t92965.html Here is the setting (see the higlighted part): Is this mean that there is a tomcat version that uses NIO? Or maybe is this a tweak? Any comments. TIA Rendra
Re: Strange memory-behaviour using Tomcat Native
On 08/04/2010 12:12, Gregor Schneider wrote: > Anybody has an idea what I might be missing here? That Java Heap Space + Perm Gen Space < OS process Space You are missing the memory used for: - native code - gc - thread stacks to name a few. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat scalability setting - need help please
Hi Pid My task is a web-based ERP application. It uses database and the number of user connection to it is up to 200 users. I use MySQL for the database. I apply the -xmx1024m and -xms1024m because I once got a message about Java Heap Out Of Space, so I searched the web and some people suggested that settings and it worked... for a while. Now that the amount of data is increased and the user using the app increased as well, lagging has been happening. The settings above I set it in the Tomcat Service monitor. And yes, I also set tomcat as service. It's running 32 Bit windows 2003 only With 8GB Ram. The tomcat version is 6.0.14. I am not assuming either tomcat is the problem or my software. I am merely trying to find a way out and I have exhausted my resources to make the software as fast as possible. Tomcat setting is the only thing that I have not explore extensively since I am not as expert as you guys. Maybe I can learn a tip or two to make things better. By the way the number of data that is being processed by the heavy app is in millions of rows. I ran the SQL directly to the mysql server and it worked ok (within minutes and not freezing the server). Meanwhile, when the query is being run via tomcat, then it will freeze the server as well. It does not kill the server, just consume all the server resources, but eventually will come back to normal after two hours with the result. Thanks Rendra -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Thursday, April 08, 2010 4:56 PM To: Tomcat Users List Subject: Re: Tomcat scalability setting - need help please On 08/04/2010 10:00, Cin Lung wrote: > Dear All Dev > > Sorry if repost, I got an error from the mailing list server. > Can anyone help me with my problem? I have two biggest problems as follow: > > 1. Multi Connection Problem: > I have a web application that service to multiple users. Everytime the > users accessing the server reach 100 users at the same time, the > tomcat would slows down. What does your app do? What tasks is it performing? Does it use a database? > I tried to set -xmx1024 and -xms1024, but it did not have any impact > at all. Where did you apply those settings? Is Tomcat installed as a service? > I tried to set the memory cache to 2048 and above, but the tomcat > won't start. Where did you apply that setting? > My current server is running AMD Athlon 64 3000+ with 8GB memory > running windows server 2003 SP1. Is it running 64bit Windows? > I am running tomcat 6 for the app server. Exactly which version of Tomcat 6.0.NN? > Before upgrading to Windows 2003 SP1 I also had the same problem. I > thought by upgrading would make a difference, but it didn't. What makes you think Tomcat and not your application is the source of your problem? If upgrading the server doesn't make a difference, perhaps this points to something that isn't affected by the processing power of the server as the source of the problem. > Is there any way to improve tomcat's performance? It is possible to tune Tomcat, but in the vast majority of cases the application is the problem. Tomcat is used in many high-load situations with great success. > Will there be any use of Java NIO Framework in tomcat? There is the NIO Connector. It's not guaranteed to make a difference as the usual source of the problem is in the application. > I mean apache has Mina, why not combine with tomcat? Assuming there's anything wrong with Tomcat, which many people here would disagree with. > 2. User cancellation problem > Another thing that really bug me is that user would click on a web > application that perform a very extensive task. The user was not patient and > just close the browser accessing the app. This did not make that particular > job stop. In fact the job is still running until finish and then it got no > place to return the result since the user closed the browser. As the result, > my server is working really hard and takes up all the resources available, > and causes other users to lag. > > Is there any way to make that particular user task/thread stop working? Interrupt it? p > Thank you in advance > Rendra > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Strange memory-behaviour using Tomcat Native
Hi there, we do observer a strange behaviour of memory-consuption when running Tomcat within native mode (via jsvc). First, our configuration: Using CATALINA_BASE: /srv/someServer/catalina_base Using CATALINA_HOME: /srv/someServer/catalina_base Using CATALINA_TMPDIR: /srv/someServer/catalina_base/temp Using JRE_HOME:/usr/lib/jvm/java-6-sun Using CLASSPATH: /srv/someServer/catalina_base/bin/bootstrap.jar Server version: Apache Tomcat/6.0.26 Server built: March 9 2010 1805 Server number: 6.0.26.0 OS Name:Linux OS Version: 2.6.26-2-686 Architecture: i386 JVM Version:1.6.0_12-b04 Besides, said Linux-bix is running within VMWare ESX Server 3i 3.5.0 build 123629 We specified the memory inside the startup-procedure as follows: CATALINA_OPTS="-XX:MaxPermSize=384m -Xms512m -Xmx512m -Djava.library.path=$CATALINA_BASE/bin/tomcat-native-1.1.20-src/jni/native/.libs $JPDA_OPTS" However, taking a look at memory-consumption using top gives the following: top - 13:04:15 up 7 days, 1:15, 1 user, load average: 0.06, 0.02, 0.00 Tasks: 72 total, 1 running, 71 sleeping, 0 stopped, 0 zombie Cpu(s): 0.0%us, 0.5%sy, 0.0%ni, 99.3%id, 0.0%wa, 0.0%hi, 0.2%si, 0.0%st Mem: 3043600k total, 624960k used, 2418640k free,95288k buffers Swap: 329292k total,0k used, 329292k free, 220852k cached PID USER PR NI VIRT RES SHR S %CPU %MEMTIME+ COMMAND 12712 tomcat20 0 967m 77m 8068 S02.6 0:06.84 jsvc Oops - what am I missing here? My expectation where, that CATALINA_OPTS are adhered to, even when starting Tomcat in native mode. The max. memory-consuption I was expecting (in case MaxpermSize is allocated completely would be some 896M. Btw., when giving Tomcat 1024m as Xms && Xmx, memory-footprint is around 1.6GB... Anybody has an idea what I might be missing here? TIA Gregor -- just because you're paranoid, don't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 @ http://pgp.mit.edu:11371/ skype:rc46fi - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat scalability setting - need help please
Dear Leon Let me answer your question by the number of the questions: 1. My threadpool settings: are you talking about the java threadpool or the tomcat server setting for the thread pool. If this is tomcat, I am sorry I think I set it to standard from installation. I did not change any tomcat standard settings except for the -xmx and -xms stuff. As for java, the DB thread pool is set for 200 connections at once. What I meant by slows down is that user clicks on a simple form view function that usually takes less dan a blink of an eye to open, now the application just not responding. The browser just keep loading and the load animation for IE keeps spinning, but does not return the appropriate response page and sometimes it just died (blank). When I check the tomcat logs nothing went wrong. This happens if a user run one of the heavy duty app and someone else run another app (even simple ones). Regarding multiple tomcat machine I am trying to avoid it because I would have to rewrite the entire software or get an QOS machine to disperse the weight. 2. For number 2, I did the warning for user to wait and not to close the browser before it is finished. But, a lot of them just don't even bother to read the warning and keep closing it. I was wondering if there is an API for monitoring dead users out there. Or I can always create a new API to monitor user activities by planting an applet on the user site that will keep pinging to the server and if the ping died, that means the user closed the browser. Is this wise? Or I can try to see The java Concurency thing that you mentioned below. Thank you for your advice and sorry for my bad English. -Original Message- From: Leon Rosenberg [mailto:rosenberg.l...@googlemail.com] Sent: Thursday, April 08, 2010 5:31 PM To: Tomcat Users List Subject: Re: Tomcat scalability setting - need help please Hello Rendra, comments inline. On Thu, Apr 8, 2010 at 11:00 AM, Cin Lung wrote: > Dear All Dev > > Sorry if repost, I got an error from the mailing list server. > Can anyone help me with my problem? I have two biggest problems as follow: > > 1. Multi Connection Problem: > I have a web application that service to multiple users. Everytime the > users accessing the server reach 100 users at the same time, the > tomcat would slows down. I tried to set -xmx1024 and -xms1024, but it > did not have any impact at all. > I tried to set the memory cache to 2048 and above, but the tomcat > won't start. What are your threadpool settings? What exactly is 'slows down' If it stops responding you are obviously running out of threads. If it just gets slower, you should consider measuring the load on your machine and webapp. Maybe you should consider scaling to multiple tomcats/machines. > Is there any way to improve tomcat's performance. Will there be any > use of Java NIO Framework in tomcat? I mean apache has Mina, why not > combine with tomcat? There are a lot of ways, but first you should identify your problem. > > 2. User cancellation problem > Another thing that really bug me is that user would click on a web > application that perform a very extensive task. The user was not > patient and just close the browser accessing the app. This did not > make that particular job stop. In fact the job is still running until > finish and then it got no place to return the result since the user > closed the browser. As the result, my server is working really hard > and takes up all the resources available, and causes other users to lag. > > Is there any way to make that particular user task/thread stop working? The common way to handle this is to inform user that the task is going to last a bit more. To achieve this, the original request starts a background job which executes the heavy task. The original request then sends the user to a wait page, which explains that he/she has to wait for the execution. The wait page reloads itself all 1-2 seconds checking whether the background job has finished. If this happens, the wait page sends the user to the result page, where he can examine the result of the background task. There are a lot of classes like Executor, Future etc. which can help you in synchronization of background jobs. Java Concurrency in Practice is a good particular start. regards Leon > > Thank you in advance > Rendra > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat scalability setting - need help please
Hello Rendra, comments inline. On Thu, Apr 8, 2010 at 11:00 AM, Cin Lung wrote: > Dear All Dev > > Sorry if repost, I got an error from the mailing list server. > Can anyone help me with my problem? I have two biggest problems as follow: > > 1. Multi Connection Problem: > I have a web application that service to multiple users. Everytime the users > accessing the server reach 100 users at the same time, the tomcat would > slows down. I tried to set -xmx1024 and -xms1024, but it did not have any > impact at all. > I tried to set the memory cache to 2048 and above, but the tomcat won't > start. What are your threadpool settings? What exactly is 'slows down' If it stops responding you are obviously running out of threads. If it just gets slower, you should consider measuring the load on your machine and webapp. Maybe you should consider scaling to multiple tomcats/machines. > Is there any way to improve tomcat's performance. Will there be any use of > Java NIO Framework in tomcat? I mean apache has Mina, why not combine with > tomcat? There are a lot of ways, but first you should identify your problem. > > 2. User cancellation problem > Another thing that really bug me is that user would click on a web > application that perform a very extensive task. The user was not patient and > just close the browser accessing the app. This did not make that particular > job stop. In fact the job is still running until finish and then it got no > place to return the result since the user closed the browser. As the result, > my server is working really hard and takes up all the resources available, > and causes other users to lag. > > Is there any way to make that particular user task/thread stop working? The common way to handle this is to inform user that the task is going to last a bit more. To achieve this, the original request starts a background job which executes the heavy task. The original request then sends the user to a wait page, which explains that he/she has to wait for the execution. The wait page reloads itself all 1-2 seconds checking whether the background job has finished. If this happens, the wait page sends the user to the result page, where he can examine the result of the background task. There are a lot of classes like Executor, Future etc. which can help you in synchronization of background jobs. Java Concurrency in Practice is a good particular start. regards Leon > > Thank you in advance > Rendra > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat scalability setting - need help please
On 08/04/2010 10:00, Cin Lung wrote: Dear All Dev Sorry if repost, I got an error from the mailing list server. Can anyone help me with my problem? I have two biggest problems as follow: > 1. Multi Connection Problem: I have a web application that service to multiple users. Everytime the users accessing the server reach 100 users at the same time, the tomcat would slows down. What does your app do? What tasks is it performing? Does it use a database? I tried to set -xmx1024 and -xms1024, but it did not have any impact at all. Where did you apply those settings? Is Tomcat installed as a service? I tried to set the memory cache to 2048 and above, but the tomcat won't start. Where did you apply that setting? My current server is running AMD Athlon 64 3000+ with 8GB memory running windows server 2003 SP1. Is it running 64bit Windows? I am running tomcat 6 for the app server. Exactly which version of Tomcat 6.0.NN? Before upgrading to Windows 2003 SP1 I also had the same problem. I thought by upgrading would make a difference, but it didn't. What makes you think Tomcat and not your application is the source of your problem? If upgrading the server doesn't make a difference, perhaps this points to something that isn't affected by the processing power of the server as the source of the problem. Is there any way to improve tomcat's performance? It is possible to tune Tomcat, but in the vast majority of cases the application is the problem. Tomcat is used in many high-load situations with great success. Will there be any use of Java NIO Framework in tomcat? There is the NIO Connector. It's not guaranteed to make a difference as the usual source of the problem is in the application. I mean apache has Mina, why not combine with tomcat? Assuming there's anything wrong with Tomcat, which many people here would disagree with. 2. User cancellation problem Another thing that really bug me is that user would click on a web application that perform a very extensive task. The user was not patient and just close the browser accessing the app. This did not make that particular job stop. In fact the job is still running until finish and then it got no place to return the result since the user closed the browser. As the result, my server is working really hard and takes up all the resources available, and causes other users to lag. Is there any way to make that particular user task/thread stop working? Interrupt it? p Thank you in advance Rendra - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: isapi_redirect 1.2.30
Thanks for letting us know your solution. On 08.04.2010 02:50, Jordan Michaels wrote: Just after I sent this it occurred to me that I could map the / without it being global (IE: /=ajp13 instead of /*=ajp13), and things would work like I want them to. So I tried that, and guess what, things work great now. ;) If only I had done that several days ago! Lesson learned: non-mapped URI's don't pass cookie information. Thanks! Warm regards, Jordan Michaels Vivio Technologies http://www.viviotech.net/ Open BlueDragon Steering Committee Railo Community Distributions Jordan Michaels wrote: Alright, Unfortunately there's no way (that I have found) to get IIS to actually log what it's passing off to the connector, but in my testing I do think I discovered what the key factor is. Whenever I get this line: [debug] HttpFilterProc::jk_isapi_plugin.c (1932): [/myfile] is a servlet url - should redirect to ajpfilter Things go great. The header information contains the proper cookie line, and everything works like it should. However, whenever I see this in the logs: [debug] HttpFilterProc::jk_isapi_plugin.c (2055): [/] is not a servlet url (This is because I have IIS configured with a default document and a script map, thus no file name is actually present in the URL) The cookie header is NOT present in the request that the connector passes off to Tomcat. This is when life sucks. I can add a /*=ajp13 to the uriworkermap, and have it work because then the connector has the "this is a servlet url" in the logs, but without that "global" mapping, no cookie information is passed along. I'm not sure if this is something that can be controlled via the connector, but seeing as it is something that works fine when it's a servlet URL, it seems like something that SHOULD work when it's NOT a servlet URL. Does this make any sense? Should I file a bug report? Thank you for your help! Warm regards, Jordan Michaels Vivio Technologies http://www.viviotech.net/ Open BlueDragon Steering Committee Railo Community Distributions Rainer Jung wrote: On 05.04.2010 18:35, Jordan Michaels wrote: Okay, I will try that. I have the properties log level currently set to "debug". I'll try trace and see if it can provide more information there (I didn't realize trace had more information then debug). Trace adds log lines for entering and leaving functions (not so interesting for you) but also switches from logging only the first couple of bytes in each raw AJP packet to dumping the full packet contents to the log file. It is a raw packet dump though, but since the cookie headers are strings, they can be recognized in the packet dump relatively easily. Try with a request which does send the cookie first, so you know what to look after. Regards, Rainer - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat scalability setting - need help please
Dear All Dev Sorry if repost, I got an error from the mailing list server. Can anyone help me with my problem? I have two biggest problems as follow: 1. Multi Connection Problem: I have a web application that service to multiple users. Everytime the users accessing the server reach 100 users at the same time, the tomcat would slows down. I tried to set -xmx1024 and -xms1024, but it did not have any impact at all. I tried to set the memory cache to 2048 and above, but the tomcat won't start. My current server is running AMD Athlon 64 3000+ with 8GB memory running windows server 2003 SP1. I am running tomcat 6 for the app server. Before upgrading to Windows 2003 SP1 I also had the same problem. I thought by upgrading would make a difference, but it didn't. Is there any way to improve tomcat's performance. Will there be any use of Java NIO Framework in tomcat? I mean apache has Mina, why not combine with tomcat? 2. User cancellation problem Another thing that really bug me is that user would click on a web application that perform a very extensive task. The user was not patient and just close the browser accessing the app. This did not make that particular job stop. In fact the job is still running until finish and then it got no place to return the result since the user closed the browser. As the result, my server is working really hard and takes up all the resources available, and causes other users to lag. Is there any way to make that particular user task/thread stop working? Thank you in advance Rendra - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Regarding thread hi-jacking
Dear all tomcat mailing list dev and users I apologize for accidentally hi-jacking a user email by using reply button. I did not realize that it is not allowed. So, please forgive me. I did that just out of convinience and I think I replaced the subject as well. I learn new rule today. Please be patient with me and I will submit my question again using new thread. Thanks Rendra
Re: Tomcat scalability settings
08.04.2010 09:42, cinl...@gmail.com: > I am newbie here. I don't understand what you meant by hi-jacking this > thread. I simply asking tomcat user mailing lis of any solution to my issue. > Did I do something wrong? If so, please let me know what I did wrong. When you want to talk about a new topic, create a new thread, i. e. create a *new* mail and address it at us...@tomcat.apache.org. What you did instead is create a reply to Florian's message which is about an entirely different topic. That you changed the subject line in your reply doesn't change the fact that you mail client did what you told it to: create a reply. That is called thread hi-jacking. It's pure accident that I read your post, since I tend to ignore hi-jacked threads. And I may not be the only one doing so. Therefore, it's in your own very interest to not hide your messages in an completely unrelated discussion thread. -- Regards mks - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat scalability settings
Dear Thomas I am newbie here. I don't understand what you meant by hi-jacking this thread. I simply asking tomcat user mailing lis of any solution to my issue. Did I do something wrong? If so, please let me know what I did wrong. Thanks you n sorry if I made any mistakes. Rendra GOD is GREAT! -Original Message- From: Mark Thomas Date: Thu, 08 Apr 2010 08:00:40 To: Tomcat Users List Subject: Re: Tomcat scalability settings On 08/04/2010 04:55, Cin Lung wrote: > Dear All Dev > > Can anyone help me with my problem? I have two biggest problems as follow: Please don't hi-jack threads. Messages that hi-jack threads tend to get ignored. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat does not honor acceptCount configuration variable
Folks, What is the best way to limit connections in tomcat, if there is one ? I have tried acceptCount, maxThreads, even specifying explicit executor - but in vain. Thanks in advance, Timir
Re: Tomcat scalability settings
On 08/04/2010 04:55, Cin Lung wrote: > Dear All Dev > > Can anyone help me with my problem? I have two biggest problems as follow: Please don't hi-jack threads. Messages that hi-jack threads tend to get ignored. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: unable to start Tomcat in Windows 7 prof - 64 bit
On 08/04/2010 04:24, Karthick Ragunath wrote: > > > Atlast, i am now able to start Tomcat 6.X > I have uninstalled 32 bit JDK and installed 64 bit JDK. > Then installed Tomcat 6.X > > For Tomcat6.x to run, if i have 64 bit OS, should i have 64 bit JDK? > > When i downloaded Tomcat, i clicked on the link "32-bit/64-bit > Windows Service Installer > (pgp, > > md5)" > available in official Tomcat download page > ("http://tomcat.apache.org/download-60.cgi";) > > I believed that this Tomcat6.x will work with both 64 and 32 bit JDK. It will, but the way the Windows installer is written at the moment, the installer requires a 64-bit JVM on 64-bit operating systems. This requirement isn't necessary and the installer could be improved to handle this better. Mark > > regards > karthick > > >> From: chuck.caldar...@unisys.com >> To: users@tomcat.apache.org >> Date: Fri, 2 Apr 2010 07:27:16 -0500 >> Subject: RE: unable to start Tomcat in Windows 7 prof - 64 bit >> >>> From: Martin Gainty [mailto:mgai...@hotmail.com] >>> Subject: RE: unable to start Tomcat in Windows 7 prof - 64 bit >>> >>> also the dlls located in %JRE_HOME%\bin\server need to be 64bit >> >> No, they don't *need* to be 64-bit; rather, they must match the mode of the >> tomcat6.exe launcher being used. >> >> - Chuck >> >> >> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY >> MATERIAL and is thus for use only by the intended recipient. If you received >> this in error, please contact the sender and delete the e-mail and its >> attachments from all computers. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> > > _ > South Cinema This Decade > http://entertainment.in.msn.com/southcinemathisdecade/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org