aspose file tools*
The moose likes Servlets and the fly likes IE can only run 3 times with servlet(apache,Tomcat) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "IE can only run 3 times with servlet(apache,Tomcat)" Watch "IE can only run 3 times with servlet(apache,Tomcat)" New topic
Author

IE can only run 3 times with servlet(apache,Tomcat)

may Lee
Ranch Hand

Joined: Nov 20, 2003
Posts: 68
Not sure if this is the suitable place to ask this question or I should move to Apache?
My environment: Redhat 9,Apache 2 as web server, Tomcat for servlet.

When uses visit my web page and input the date by applet, the date is sent to servlet on Tomcat, servlet calculate and sends back an integer array[6][300], then applet plot graph according to the integer array in its canvas.

I use IE test my web. It is working, but not more than many times. I mean, first use inputs one date and get the graph, then use input a new date, get another graph, then continue. One one PC, it can only do this 3 time, on the other one, it can do this 5 times. On my linux bos, looks like it can do this more than 5 times. I have no idear what the porblem could be!!! Please give me some suggestion!!!
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Could be a resource problem - see how much memory IE uses while its runing you applet.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Sloan Bowman
Ranch Hand

Joined: Jan 21, 2003
Posts: 107
To me it sounds like you have a problems with the applet and not the servlet processing the data. Are you able to run the servlet with dummy data passed to it by for example get parameters? Try this to see if it is the servlet that is crashing or its the applet using up all your systems resources. Just an idea.
may Lee
Ranch Hand

Joined: Nov 20, 2003
Posts: 68
More information:

I monitor Memory and CPU usage on both client PC and Linux server box when I use IE to connect to my website on Linux Apache server. The Mem and CPU usage on both box are normal, excep when servlet running the calculation, at one moment CPU usage on Linux box is high, then it decreased to 0 after it finished the task.

If I use Mozilla on the Linux server, I can visit my web page as many time as I want.

I found, when I run IE to visit my web page, first I can input the date by applet for a couplr of times to get the data graoh, then when I input the date one more time, the date is not sent to servlet for calculation (cos nothing happen on CPU usage on Linux server box) and I cannot click the choice list on the applet on the web page. But I can use Refresh in IE to refresh the web page then input the date again, refresh and input the date, repeat like.

So looks like it is applet problem on IE, which cannot run as many as i want. Need to be refresh each time before I input the new date.

What is the solution to solve this porblem? Thanks for any idea!
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
Is this IE with the original MS Java or have you installed a more recent plug-in? Which version of IE?
Bill
may Lee
Ranch Hand

Joined: Nov 20, 2003
Posts: 68
It is IE 6 on WinXP, using its original MS java.
I have not installed any new plug-ins.
I am using Java-1.2.2 and Tomcate 4.30 on my linux box.
Do you think the new plug-in is needed? If so, it might be a bit troublesome when your web visitors have to install new plug-in? Is it? Or there is some other solution, such as change some configuration on IE?
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
As I recall, MS Java is frozen about the 1.17 level so your Java 1.2 is introducing potentially incompatible usages.
Sun has made it very easy (at this web site) to download and install the latest plugin.
I really recommend that you go to Java 1.4 SDK for all your systems.
Bill
may Lee
Ranch Hand

Joined: Nov 20, 2003
Posts: 68
I tried to compile my applet with Java 1.4 before, but IE could not run my applet, it was a grey box. So I compile it with java1.2, then IE can run my applet, but get this problem, I mean only run a couple of time.

Install the latest plug-in, maybe this is the last solution. It is just that users visiting my websit could feel troublesome if they need to downlaod and install something to see the website.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: IE can only run 3 times with servlet(apache,Tomcat)