Heap out of memory error

2007-11-05 Thread Bob Riaz
Hi all, I have web apps using the following: JDK 1.5 Tomcat 6 SQL Server 2000 Windows 2000 server From time to time I have come across this error in the Tomcat logs: java.lang.OutOfMemoryError: Java heap space I understand the default heap size is 64M, and that it is possibe to configure Tomcat

RE: [OT] Tomcat causing high CPU load

2007-11-07 Thread Bob Riaz
Many thanks for all the suggestions. I found a simple tool called StackTrace from http://www.adaptj.com/root/main/tracehowtos#ht0 to help me take thread dumps from Tomcat. I found when the CPU load was high that there was a thread from the suspect web app running. In contrast, thread dumps

RE: [OT] Tomcat causing high CPU load

2007-11-08 Thread Bob Riaz
Thanks. StringBuilder seems to be the most popular suggestion! I'm going to implement this and report on any changes I see in Tomcat's behavior. I'm also looking at other possiblities, such as Tomcat's I/O activities causing thrashing if I/O is excessive. Would anybody know how I could monitor

Configure webapp Session timeout

2007-11-20 Thread Bob Riaz
Hello all, We're running a servlet that processes responses from an online test. The test is 2 hrs long, and we find that if a user does not make a request from his browser (saves a test answer) the sesion times out, and when he does next try to save an answer the servlet bounces him back to the

Request parameters incorrect

2007-12-05 Thread Bob Riaz
Hello all, We're using the following: Java 5.0 Tomcat6.0 SQL Server 2000 Our webapp does the following: Get the request parameters from the request object from a page, concatenate them into a string, store the string in the db. When we retrieve the string from the db, we know what parameters to

RE: Request parameters incorrect

2007-12-05 Thread Bob Riaz
incorrect From: Bob Riaz [mailto:[EMAIL PROTECTED] Subject: Request parameters incorrect The parameters we find in this string come from 3 different pages! We're baffled!! This is pretty much always a problem with incorrect scoping or synchronization in the webapp. For example, code

New jsp not being read

2008-01-17 Thread Bob Riaz
Hi all, Here is my environment: Eclipse Europa Tomcat 5.5 Windows XP Pro My application goes like this: request -- servletA -- form.jsp -(post)- servletB My problem is this: when I make a change to form.jsp, this change is not reflected in the jsp that gets displayed. An older version of the

RE: New jsp not being read

2008-01-17 Thread Bob Riaz
at least once whether the clock was at fault or not. --David Bob Riaz wrote: Hi all, Here is my environment: Eclipse Europa Tomcat 5.5 Windows XP Pro My application goes like this: request -- servletA -- form.jsp -(post)- servletB My problem is this: when I make a change to form.jsp, this change

Reload modifed servlet

2008-01-26 Thread Bob Riaz
Hello all, My environment: Windows XP-Pro Tomcat 6 JDK 6 Eclipse JEE IDE I find that whenever I make a change to my servlet, I need to Clean/Rebuild the project in order for the changes to take effect. Even restarting Tomcat doesn't take the change. It didn't used to be this way!! I've set

Class cast exception thrown from jsp servlet

2008-03-07 Thread Bob Riaz
Hello all, I'm running a JSF application in Netbeans 6.0. OS: Windows XP pro DB: SQL Server 2000 I'm running into the following problem (the name of my jsp is ResumeList.jsp). The same application is being run on our production server and it works! Any thoughts on this would be greatly

RequestDispatcher throws Exception on server

2008-04-09 Thread Bob Riaz
Hi, Here's my environment: Eclipse Europa Tomcat 6 I'm running a simple app that receives a request, and redirects to the appropriate page depending on the request url. This works fine when I test it on my local machine. But when I run it on the server an exception is thrown at

RE: RequestDispatcher throws Exception on server

2008-04-13 Thread Bob Riaz
: RE: RequestDispatcher throws Exception on server From: Bob Riaz [mailto:[EMAIL PROTECTED] Subject: RequestDispatcher throws Exception on server Here's my environment: Eclipse Europa Tomcat 6 You're not really running Tomcat on your server via Eclipse, are you? Want to give us a hint