Re: Forms authentication without cookies in 6.0.33
On 20 Jul 2012, at 03:38, Brett Mason b.ma...@adinstruments.com wrote: Hi there, We have an application which uses the forms authentication provided by Servlet specification and is configured store session IDs in the URL rather than using cookies. This configuration has been working as expected under Tomcat 6.0.32 and earlier. On upgrading to Tomcat 6.0.33 or 6.0.35 this combination no longer works as expected. Specifically, when a user initially submits the login form they are immediately returned back to the form-login-page. Submitting the login form a second time allows them to log in. The only difference I have been able to spot between the first and second form submission is for the second submission the request attribute javax.servlet.forward.request_uri now has the jsessionid appended to the URL. After a bit of reading I'm not sure if this change is a bug, perhaps introduced by the changes to path parameter handling as mentioned in these threads: http://markmail.org/thread/2yzusfukitalkhyx http://tomcat.markmail.org/thread/ykx72wcuzcmiyujz Or if we are using an unsupported configuration which is suggested by section SRV.12.5.3.1 of the Servlet specification v2.5. Could someone please clarify if Tomcat supports forms authentication without cookies? If it is intended to be a supported configuration I'm happy to submit a bug report and can provided a simple standalone test app to reproduce the problem. Form auth should work regardless of where the session id lives. Is the login form an HTML or JSP page? A session must be created before you can login, it sounds like Tomcat isn't seeing one during the first login. p Thanks, Brett. Environment details: - Windows 7 64-bit, Oracle JVM 1.6.0u32 1.7.0u4. - Debian 5 32-bit, Oracle JVM 1.6.0u32. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Forms authentication without cookies in 6.0.33
Brett Mason b.ma...@adinstruments.com wrote: Could someone please clarify if Tomcat supports forms authentication without cookies? It should. If it is intended to be a supported configuration I'm happy to submit a bug report and can provided a simple standalone test app to reproduce the problem. Please. The best standalone test apps are those supplied as WARs with the source for any classes (if any - ideally none) included in the WAR. Source trees we have to build are usually a pain as we rarely have the right combination of build tools and settings immediately to hand. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 7.0.25 on an AS/400, V5R4, Another try. Help?
On Thu, 2012-07-19 at 17:25 -0700, James Lampert wrote: Tim: This is normally in TC_HOME/lib/catalina.jar. A. Does it exist there? B. Does the user the process is running as have permission to read that file and directory? C. If yes to A B, is the file corrupt? /wintouch/tomcat/lib/catalina.jar exists. I had to FTP it elsewhere to check its validity, but it seems valid. And the authorities for it look exactly the same as those for /wintouch/tomcat/bin/bootstrap.jar. Rainer: - if catalina.jar is not in /wintouch/tomcat/lib or it is not readable - if catalina.properties is not in /wintouch/tomcat/conf, or it is not readable, or the entries for the server.loader or common.loader are broken - the start scripts do not set -Dcatalina.base=/wintouch/tomcat/ and -Dcatalina.home=/wintouch/tomcat/ when starting the JVM - you are changing the place of the used properties file by giving a non-default value in the system property -Dcatalina.config during startup. Everything looks like it's in the right place, undamaged, and without authority issues. Perhaps the IBM JDK6 has some bugs running on V5R4? Some other things you might do to shed more light on this: - Add these lines to the end of conf/logging.properties: org.apache.catalina.startup.Bootstrap.level = ALL org.apache.catalina.startup.ClassLoaderFactory.level = ALL Then stop/start Tomcat. You should see a log entry like: location X is file:/wintouch/tomcat/lib/catalina.jar - If you do see an entry as above try compiling and running the following from /wintouch/tomcat which tests finding a class: BEGIN import java.io.File; import java.net.URL; import java.net.URLClassLoader; public class FindClass { public static void main(String[] args) { try { URLClassLoader loader = new URLClassLoader( new URL[] {new File(/wintouch/tomcat/lib/catalina.jar).toURI().toURL()}); loader.loadClass(args[0]); System.out.println(URLClassLoader found class ' +args[0] +'); } catch (Exception e) { e.printStackTrace(); } } } END * Save this to FindClass.java in /wintouch/tomcat * Compile it: javac FindClass.java (or compile on another machine and copy the resulting .class file) * Run it: java -cp . FindClass org.apache.catalina.startup.Catalina If this fails then my guess would be that there's a JDK6 problem on V5R4 or there's a problem with your catalina.jar. If it succeeds then some Tomcat file(s) aren't as correct and/or authorized as you think they are -- or you're leaving out some other important factor. -- JHHL - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org signature.asc Description: This is a digitally signed message part
Re: java.sql.SQLException: No more data to read from socket
- Original Message - Daniel, It is a web application. I was just referring to the java code in the webapplication. This is how we retrieve the connection Class.forName(driver); ObjectPool connectionPool = new GenericObjectPool(null); ConnectionFactory connectionFactory = new DriverManagerConnectionFactory(connectionURI,userName,password); PoolableConnectionFactory poolableConnectionFactory = new PoolableConnectionFactory(connectionFactory,connectionPool,null,null,defaultReadOnly,defaultAutoCommit); coDataSource = new PoolingDataSource(connectionPool); } coDataSource is a static object and a connection is obtained whenever needed ,using coDataSource.getConnection() This doesn't look like a Tomcat issue. Your app is maintaining its own connection pool, it is not using one provided by Tomcat. I would suggest that you talk with your developers and see if they can help you. Dan --- On Fri, 20/7/12, Daniel Mikusa dmik...@vmware.com wrote: From: Daniel Mikusa dmik...@vmware.com Subject: Re: java.sql.SQLException: No more data to read from socket To: Tomcat Users List users@tomcat.apache.org Date: Friday, 20 July, 2012, 1:59 AM - Original Message - Thanks Daniel. - DB is getting restarted every weekend but tomcat is not getting restarted at the same time. just fyi this issue doesnt happen every time. It happens once every month even if the DB is getting restarted every week. So not sure wat is the exact root cause -I have attached the server.xml. I dont find the Resource tag here.. Is the Resource/ tag defined somewhere else? Perhaps in a Context/ tag? conf/context.xml, conf/Catalina/localhost/app.xml or META-INF/context.xml? From java code, a data source is created using PoolableConnectionFactory and GenericObjectPool and then a connection is retrieved from this datasource. What Java code? Your web application? Are you manually creating the DataSource and connection pool? Dan --- On Thu, 19/7/12, Daniel Mikusa dmik...@vmware.com wrote: From: Daniel Mikusa dmik...@vmware.com Subject: Re: java.sql.SQLException: No more data to read from socket To: Tomcat Users List users@tomcat.apache.org Date: Thursday, 19 July, 2012, 9:53 PM - Original Message - Thanks Daniel and Jose. Do you knoe what is the root cause of this issue It's hard to say since you have not answered the questions from my previous email, you have not posted your data source configuration and you have only posted a partial stack trace. Nevertheless, I will venture a guess. *If* you are in fact restarting your Oracle database then that would disconnect any persistent connections maintained by the connection pool. Given that your connection pool would contain a bunch of connections which have been disconnected, you would either need to restart Tomcat (which will create a fresh connection pool) or configure your connection pool to find and replace the closed connections (hence the suggestion to use a validationQuery). That's just a guess though, I do not believe that the amount of information that you have provided is sufficient to give you an exact answer. Dan --- On Thu, 19/7/12, Daniel Mikusa dmik...@vmware.com wrote: From: Daniel Mikusa dmik...@vmware.com Subject: Re: java.sql.SQLException: No more data to read from socket To: Tomcat Users List users@tomcat.apache.org Date: Thursday, 19 July, 2012, 5:39 PM - Original Message - Jose, Tomcat is using JDK 1.5 and its JDBC driver.So I am not sure if I need to upgrade the JDBC driver. I suspect that whene DB is getting restarted, Are you restarting the Oracle database without restarting your Tomcat instance? Depending on how your application gets a database connection this could be an issue. the idle connections are being removed. Are you using Tomcat DataSource to manage your connections? If so, please include your Resource/ tag. Not sure how we can avoid this situation If you are using a DataSource, you could try adding validation. With DBCP this is done by adding a validationQuery option. For more details, see the following link. https://commons.apache.org/dbcp/configuration.html Dan Thanks and Regards, Vijay Mathew --- On Thu, 19/7/12, Jose María Zaragoza demablo...@gmail.com wrote: From: Jose María Zaragoza demablo...@gmail.com Subject: Re: java.sql.SQLException: No
Re: java.sql.SQLException: No more data to read from socket
Daniel Mikusa wrote: ... This doesn't look like a Tomcat issue. Your app is maintaining its own connection pool, it is not using one provided by Tomcat. I would suggest that you talk with your developers and see if they can help you. Which, after a very long detour, seems to bring us back to the very first answer to this thread, doesn't it ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: java.sql.SQLException: No more data to read from socket
- Original Message - Daniel Mikusa wrote: ... This doesn't look like a Tomcat issue. Your app is maintaining its own connection pool, it is not using one provided by Tomcat. I would suggest that you talk with your developers and see if they can help you. Which, after a very long detour, seems to bring us back to the very first answer to this thread, doesn't it ? Perhaps. While the exception is showing Oracle, which certainly appears to be the culprit, the user might be able to mitigate the issue with a configuration option like validationQuery. Unfortunately the user is not defining a resource in Tomcat, so it makes it difficult to instruct him how to try adding such an option. The user would need to check with the app developer to see about altering the configuration. Dan - 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:[OT] Tomcat 7.0.25 on an AS/400, V5R4, Another try. Help?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pete, On 7/19/12 8:29 PM, Pete Helgren wrote: The error might be a red herring or a show stopper but I also have: export -s JAVA_OPTS=-Dos400.awt.native=true -Djava.awt.headless=true -Xms256m -Xmx512m In my catalina.sh script. FYI it is recommended to customize catalina.sh by creating a setenv.sh script and using that. That way, you don't have to play games with updating catalina.sh when a new release comes out. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlAJjEIACgkQ9CaO5/Lv0PBkHwCffRU2hg1jNcy/zJ9sO7xopbVj w70AniiXt0bgQjWS4WKpjR58J0Ts/nmb =DZJb -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: java.sql.SQLException: No more data to read from socket
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 - -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Vijay, On 7/19/12 8:25 PM, vijay mathew wrote: java.sql.SQLException: No more data to read from socket at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:74) at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:110) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:171) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:227) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:439) at oracle.jdbc.driver.T4CMAREngine.unmarshalUB1(T4CMAREngine.java:1042) at oracle.jdbc.driver.T4CMAREngine.unmarshalSB1(T4CMAREngine.java:999) at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:584) at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:183) at oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:774) at oracle.jdbc.driver.T4CStatement.executeMaybeDescribe(T4CStatement.java:849) at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1186) at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1377) at oracle.jdbc.driver.OracleStatementWrapper.executeQuery(OracleStatementWrapper.java:386) at com.merck.mrl.pcisrr.mrlsos.loginservlet.service(loginservlet.java:124) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) So, when this happens, it always happens alongside an Oracle restart, but an Oracle restart does not always mean you'll get one of these errors? - - -chris - -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEUEARECAAYFAlAJixAACgkQ9CaO5/Lv0PDr8wCY2P8stZkV5AmvW28eYVf2wAYQ SACeJBVjBTrLzWTTtkH1Hcnsh5IPKLI= =pXsE - -END PGP SIGNATURE- -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlAJjJ8ACgkQ9CaO5/Lv0PBKQgCcCQPPTZaSCmug5EBYrXhONKXv PskAn2hQ4zG+gQGK+9t7IyRqWO/0z2AM =ckQ+ -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Location of Tomcat 7 jvm defualt settings...
Hi All, Does anyone know the location of the default jvm settings for Tomcat 7 if the JAVA_OPTS env variable for windows is not specified? Also, does anyone know what the recommended settings to start with for say Oracle 64-bit jvm and Tomcat 7? For -Xss it used to be -Xss126k for 32-bit jvm but I am wondering for 64-bit if I should startout with -Xss256k instead. Is there an updated document for Tomcat 7 performance tuning somewhere especially for 64-bit jvm since that is quickly becoming the standard for server side servlet containers. Thanks, -Tony
Re: [OT] Tomcat 7.0.25 on an AS/400, V5R4, Another try. Help?
Christopher Schultz wrote: export -s JAVA_OPTS=-Dos400.awt.native=true -Djava.awt.headless=true -Xms256m -Xmx512m In my catalina.sh script. FYI it is recommended to customize catalina.sh by creating a setenv.sh script and using that. That way, you don't have to play games with updating catalina.sh when a new release comes out. We're doing the equivalent with ADDENVVAR statements (and CPYENVVAR(*YES) on the SBMJOB statement) in the CL program that launches the script (that way, we don't even have to bother with a setenv.sh). And I agree, Tomcat won't run at all on an AS/400 without those environment variables being set *somewhere* for the CATALINA job. -- JHHL - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Location of Tomcat 7 jvm defualt settings...
From: Tony Anecito [mailto:adanec...@yahoo.com] Subject: Location of Tomcat 7 jvm defualt settings... Does anyone know the location of the default jvm settings for Tomcat 7 if the JAVA_OPTS env variable for windows is not specified? There are none. Tomcat uses whatever the JVM defaults are for your platform. Also, does anyone know what the recommended settings to start with for say Oracle 64-bit jvm and Tomcat 7? No such suggestions can possibly exist, since they are dependent on the behavior of the webapps running inside Tomcat, not Tomcat itself. Is there an updated document for Tomcat 7 performance tuning somewhere especially for 64-bit jvm since that is quickly becoming the standard for server side servlet containers. No - for the same reason as above. When necessary (and other than heap size, it rarely is), tuning has to be done for the webapps, not Tomcat. - 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: Location of Tomcat 7 jvm defualt settings...
Thanks Charles I have found documention for all the below from the Tomcat group but seemed somewhat outdated. Mark Thomas's name seemed dominant in most of the presentations I have seen there is even sections dealing with Tomcat in various Tomcat books I have seen. True the tuning is dependent somewhat upon the app but even Mark mentioned logging levels, threads that run contineously that might best be tuned off (like checking for new deploys ect). He also mentioned the xmx xms java tuning and what Tomcat without apps (WARs) loaded needs although not sure if he mentioned xss parimeters. I am using the G1 GC by default since that is setup in 1.7.0_05 and the compressed pointers is also setup by default for that version of 1.7.0_05. I am also looking at the OS level to remove uneeded services. I alreadt tuned the network transport parameters as best as possible. FYI I currently am down to the 1-2msec response times as measured at the exposed web services methods inside of Tomcat 7 using 64-bit Oracle 1.7.0_05 JDK and that includes database calls to SQL Server 2012 Express. I have used some of the standard things mentioned by Mark Thomas which has helped alot and looking for more current tips. I am using the latest JAX_WS Metro release and my next step is to go to JAX-RS and look at the size of the request/response and new total response time as recorded in the Apache logs and the client side measurements where currently I am seeing 5-7msec over a 1Gb/s ethernet. Every 6 months or so I do a non-functional tuning exercise that includes code updates like the last one where I eliminated the EJB calls to JBoss and went to jdbc calls from within Tomcat a more bare metal appraoch. That alone reduced my web method round trip time from 6-7msec down to 1-2msec. Thanks for the advice. -Tony --- On Fri, 7/20/12, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Caldarale, Charles R chuck.caldar...@unisys.com Subject: RE: Location of Tomcat 7 jvm defualt settings... To: Tomcat Users List users@tomcat.apache.org Date: Friday, July 20, 2012, 1:05 PM From: Tony Anecito [mailto:adanec...@yahoo.com] Subject: Location of Tomcat 7 jvm defualt settings... Does anyone know the location of the default jvm settings for Tomcat 7 if the JAVA_OPTS env variable for windows is not specified? There are none. Tomcat uses whatever the JVM defaults are for your platform. Also, does anyone know what the recommended settings to start with for say Oracle 64-bit jvm and Tomcat 7? No such suggestions can possibly exist, since they are dependent on the behavior of the webapps running inside Tomcat, not Tomcat itself. Is there an updated document for Tomcat 7 performance tuning somewhere especially for 64-bit jvm since that is quickly becoming the standard for server side servlet containers. No - for the same reason as above. When necessary (and other than heap size, it rarely is), tuning has to be done for the webapps, not Tomcat. - 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: Location of Tomcat 7 jvm defualt settings...
On 20/07/2012 21:42, Tony Anecito wrote: Thanks Charles I have found documention for all the below from the Tomcat group but seemed somewhat outdated. Mark Thomas's name seemed dominant in most of the presentations I have seen there is even sections dealing with Tomcat in various Tomcat books I have seen. True the tuning is dependent somewhat upon the app but even Mark mentioned logging levels, threads that run contineously that might best be tuned off (like checking for new deploys ect). He also mentioned the xmx xms java tuning and what Tomcat without apps (WARs) loaded needs although not sure if he mentioned xss parimeters. I am using the G1 GC by default since that is setup in 1.7.0_05 and the compressed pointers is also setup by default for that version of 1.7.0_05. I am also looking at the OS level to remove uneeded services. I alreadt tuned the network transport parameters as best as possible. FYI I currently am down to the 1-2msec response times as measured at the exposed web services methods inside of Tomcat 7 using 64-bit Oracle 1.7.0_05 JDK and that includes database calls to SQL Server 2012 Express. I have used some of the standard things mentioned by Mark Thomas which has helped alot and looking for more current tips. I'm pretty sure that I will have said somewhere in each of those presentations words to the effect of Don't guess where the bottlenecks are. Get yourself a profiler, profile your application and find out where they really are. If the profiler highlights any Tomcat internal code, let us know and we'll take a look. I'll also add something that I picked up at JavaOne a few years ago. Pick any two of high throughput, small heap, low GC pause times. Whichever two you pick, the other one will suffer. In an ideal world, the GC needs plenty of manoeuvring room and you should aim to provide roughly 5 times the minimum memory your app needs (minimum being defined as the lowest heap usage you can force with lots of manual GC). HTH, Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Location of Tomcat 7 jvm defualt settings...
Thanks for the quick reply Mark. Yes I saw your comments in one of your presentations about profilier and I am a fan of visualvm and have profiled Tomcat in the past but when down to 1-2msec not sure how much the profilier can pick up. I did notice that as the hotspot engine warms up the response times start to see improvement. I did adjust the -Xss256k from the default of 1M and I am looking forward to when I get home to see the results since the response times quickly went to 3msec after that was set and hope to see 1msec or below after running for 1 day if that change really helps. I did start out profiling the SQL and that helped and switching to the jtds jdbc driver which seem to help even more and of course eliminating the interprocess communication (Tomcat - JBoss). I made sure my data types in SQL server were unicode so the jdbc drive did not do extra conversion work to unicode. I am slowly moving to the front (JAX-WS to JAX-RS) and then a deep dive into OS tuning. After that I will stop tuning for another 6 months I guess. Best Regards, -Tony --- On Fri, 7/20/12, Mark Thomas ma...@apache.org wrote: From: Mark Thomas ma...@apache.org Subject: Re: Location of Tomcat 7 jvm defualt settings... To: Tomcat Users List users@tomcat.apache.org Date: Friday, July 20, 2012, 2:53 PM On 20/07/2012 21:42, Tony Anecito wrote: Thanks Charles I have found documention for all the below from the Tomcat group but seemed somewhat outdated. Mark Thomas's name seemed dominant in most of the presentations I have seen there is even sections dealing with Tomcat in various Tomcat books I have seen. True the tuning is dependent somewhat upon the app but even Mark mentioned logging levels, threads that run contineously that might best be tuned off (like checking for new deploys ect). He also mentioned the xmx xms java tuning and what Tomcat without apps (WARs) loaded needs although not sure if he mentioned xss parimeters. I am using the G1 GC by default since that is setup in 1.7.0_05 and the compressed pointers is also setup by default for that version of 1.7.0_05. I am also looking at the OS level to remove uneeded services. I alreadt tuned the network transport parameters as best as possible. FYI I currently am down to the 1-2msec response times as measured at the exposed web services methods inside of Tomcat 7 using 64-bit Oracle 1.7.0_05 JDK and that includes database calls to SQL Server 2012 Express. I have used some of the standard things mentioned by Mark Thomas which has helped alot and looking for more current tips. I'm pretty sure that I will have said somewhere in each of those presentations words to the effect of Don't guess where the bottlenecks are. Get yourself a profiler, profile your application and find out where they really are. If the profiler highlights any Tomcat internal code, let us know and we'll take a look. I'll also add something that I picked up at JavaOne a few years ago. Pick any two of high throughput, small heap, low GC pause times. Whichever two you pick, the other one will suffer. In an ideal world, the GC needs plenty of manoeuvring room and you should aim to provide roughly 5 times the minimum memory your app needs (minimum being defined as the lowest heap usage you can force with lots of manual GC). HTH, Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: java.sql.SQLException: No more data to read from socket
For the last 2 failures, this issue appeared on Monday and DB gets restarted every Saturday. So I assume that this issue has to do something with the DB restart for the last 2 failures. However 1 months back, the same issue appeared on a Wednesday. So I was not able find a real pattern for this issue when I compare the last 3 failures. --- On Fri, 20/7/12, Christopher Schultz ch...@christopherschultz.net wrote: From: Christopher Schultz ch...@christopherschultz.net Subject: Re: java.sql.SQLException: No more data to read from socket To: Tomcat Users List users@tomcat.apache.org Date: Friday, 20 July, 2012, 10:21 PM -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 - -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Vijay, On 7/19/12 8:25 PM, vijay mathew wrote: java.sql.SQLException: No more data to read from socket at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:74) at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:110) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:171) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:227) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:439) at oracle.jdbc.driver.T4CMAREngine.unmarshalUB1(T4CMAREngine.java:1042) at oracle.jdbc.driver.T4CMAREngine.unmarshalSB1(T4CMAREngine.java:999) at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:584) at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:183) at oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:774) at oracle.jdbc.driver.T4CStatement.executeMaybeDescribe(T4CStatement.java:849) at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1186) at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1377) at oracle.jdbc.driver.OracleStatementWrapper.executeQuery(OracleStatementWrapper.java:386) at com.merck.mrl.pcisrr.mrlsos.loginservlet.service(loginservlet.java:124) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) So, when this happens, it always happens alongside an Oracle restart, but an Oracle restart does not always mean you'll get one of these errors? - - -chris - -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEUEARECAAYFAlAJixAACgkQ9CaO5/Lv0PDr8wCY2P8stZkV5AmvW28eYVf2wAYQ SACeJBVjBTrLzWTTtkH1Hcnsh5IPKLI= =pXsE - -END PGP SIGNATURE- -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlAJjJ8ACgkQ9CaO5/Lv0PBKQgCcCQPPTZaSCmug5EBYrXhONKXv PskAn2hQ4zG+gQGK+9t7IyRqWO/0z2AM =ckQ+ -END PGP SIGNATURE- - 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