• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!!!
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Could be a resource problem - see how much memory IE uses while its runing you applet.
 
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic