*nix Thread, Java JRE 1.5.0 performance problems with Squid proxy in Technical; We have a Linux based proxy server running Squid & Dansguardian. This was set up by our LEA support team.
...
-
10th March 2006, 09:57 AM #1 Java JRE 1.5.0 performance problems with Squid proxy
We have a Linux based proxy server running Squid & Dansguardian. This was set up by our LEA support team.
During a recent image refresh of our classroom PCs we upgraded Jave.
Now we are experiencing major performance problems with Java JRE 1.5.0_6 compared to JRE 1.4.2 when students are accessing Samlearning.
Under JRE 1.5.0 The Java 'coffee cup' animation takes forever to load before the Java applet starts, however under 1.4.2 it is very quick.
I have been able to reproduce the problem accessing other websites that use Java which suggests it is not a problem unique to Samlearning.
Looking at the Java console, there are significant delays (7-9secs) following every 'network: Connecting http.....' request.
The problem exists using either IE6 or Firefox browsers. If I tell the browser to bypass the proxy JRE 1.5.0 is almost as fast as JRE 1.4.2.
To me, this points to a problem with the Proxy. Any ideas or suggestions on how to resolve this? Downgrading Java back to 1.4.2 would be a short term bypass, but would be a lot of work & would still leave us with the basic problem.
Brian
-
-
IDG Tech News
-
10th March 2006, 12:12 PM #2 Re: Java JRE 1.5.0 performance problems with Squid proxy
I dont have direct experience of this yet, but i looked it up in anticipation that we'll have the same problem with JRE updates.
You should check with the proxy but without the firewall.
http://archlinux.org/pipermail/arch/...er/007409.html
http://forum.java.sun.com/thread.jspa?messageID=3980773
Apparently, the timeout is due to the fact, that the program first tries to use ipv6 instead of ipv4. If your local ipv6 policy is set to block all ipv6 traffic, the java program waits, until the connection is timed out, and the program falls back to ipv4.
-
-
10th March 2006, 12:26 PM #3 Re: Java JRE 1.5.0 performance problems with Squid proxy
We use a linux proxy with squid, but without the firewall and it's fine for us. I've only upgraded a couple of machines so far to test it though, but there's no problems.
-
-
4th December 2006, 08:42 PM #4 Re: Java JRE 1.5.0 performance problems with Squid proxy

Originally Posted by
broc Now we are experiencing major performance problems with Java JRE 1.5.0_6 compared to JRE 1.4.2 when students are accessing Samlearning.
Under JRE 1.5.0 The Java 'coffee cup' animation takes forever to load before the Java applet starts...
Could I ask whether you resolved this issue? We're having a similar problem with samlearning.
I'm going to try running an applet from a file URL, and the same applet from my website - hopefully this should narrow down where the problem is likely to be. (Or at least give me enough evidence to say it isn't the JRE itself.)
Sixth day on the job... I'm liking it. People actually thank you for your help - I never got that in my last job
-
-
4th December 2006, 09:56 PM #5 Re: Java JRE 1.5.0 performance problems with Squid proxy
We've had problems with SamLearning through a proxy - this time using Censornet (squid/dansguardian). I just put it in the list to bypass the authentication and filtering and it's okay now - as much as it will ever be
It helps with all of these 'educational' sites just not to bother filtering. You'll just get a 'vacancy' sign flapping in the breeze if you talk to their support.
-
-
5th December 2006, 09:27 AM #6 Re: Java JRE 1.5.0 performance problems with Squid proxy

Originally Posted by
duncane 
Originally Posted by
broc Now we are experiencing major performance problems with Java JRE 1.5.0_6 compared to JRE 1.4.2 when students are accessing Samlearning.
Under JRE 1.5.0 The Java 'coffee cup' animation takes forever to load before the Java applet starts...
Could I ask whether you resolved this issue? We're having a similar problem with samlearning.
I'm going to try running an applet from a file URL, and the same applet from my website - hopefully this should narrow down where the problem is likely to be. (Or at least give me enough evidence to say it isn't the JRE itself.)
Sixth day on the job... I'm liking it. People actually thank you for your help - I never got that in my last job

We gave up eventually. Our Proxy was built & maintained by our LEA support team. They could reproduce the problem (it affected all Java access, including Samlearning) but they were unable to find a solution. After 9 months of reminding them I gave up & downgraded Java to 1.4.2 (during summer holidays) and the problem went away. We proved that bypassing the proxy for Java fixed the problem but that was not the solution we wanted.
-
-
5th December 2006, 09:34 AM #7 Re: Java JRE 1.5.0 performance problems with Squid proxy
Have the subsequent releases of Java not helpe you.... JRE 1.5.9 is the latest IIRC.
-
-
5th December 2006, 10:36 AM #8 Re: Java JRE 1.5.0 performance problems with Squid proxy
Can you give me an example of a site that runs slow? I'll have a tinker here with Java/squid.
-
-
5th December 2006, 10:51 AM #9 Re: Java JRE 1.5.0 performance problems with Squid proxy
Try this
www.samlearning.com
then select GCSE from left hand side, then Maths, then Algebra free sample, followed by factorising start
With 1.4.2 we get a grey window opens, with Java coffee cup in top left corner, followed by the student problem displayed maybe 2-4 seconds later.
When we last tried this on 1.5.0 the kids were tearing mouse buttons off with frustration & boredom waiting for the problem to load. it took several minutes.
The problem existed with Firefox and IE6, if I recall correctly bypassing the proxy either in the Java console or at the browser level fixed the performance problem. Looking at the Java console it looked like every request sent to the proxy waits (times out?) and then gets a response. The time delay was very consistent (I think I timed it at something like 6-7 seconds even when there was no load after school).
-
-
5th December 2006, 10:52 AM #10 Re: Java JRE 1.5.0 performance problems with Squid proxy

Originally Posted by
Ric_ Have the subsequent releases of Java not helpe you.... JRE 1.5.9 is the latest IIRC.
I will try the latest version later today if I get a chance.
-
-
5th December 2006, 11:02 AM #11 Re: Java JRE 1.5.0 performance problems with Squid proxy

Originally Posted by
broc Try this
www.samlearning.com
then select GCSE from left hand side, then Maths, then Algebra free sample, followed by factorising start
With 1.4.2 we get a grey window opens, with Java coffee cup in top left corner, followed by the student problem displayed maybe 2-4 seconds later.
When we last tried this on 1.5.0 the kids were tearing mouse buttons off with frustration & boredom waiting for the problem to load. it took several minutes.
The problem existed with Firefox and IE6, if I recall correctly bypassing the proxy either in the Java console or at the browser level fixed the performance problem. Looking at the Java console it looked like every request sent to the proxy waits (times out?) and then gets a response. The time delay was very consistent (I think I timed it at something like 6-7 seconds even when there was no load after school).
The Java application you mentioned is buggy. It uses the correct Java system calls to pull in some of it's class files but then appears to be hard coded to go direct for the rest. Which of course fails.
Here's the Squid log:
Where you can see it's behaving. After these two class files are pulled down it hangs. Then in the console we get:
Code:
load: class ShowFile not found.
java.lang.ClassNotFoundException: ShowFile
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 11 more
-
-
5th December 2006, 01:43 PM #12 Re: Java JRE 1.5.0 performance problems with Squid proxy
ok, I've got this working now. I missed the other log entries before.
It looks like that running the java app requires downloading of extra components from sun. My proxy disallows .cab and .msi file downloads. So I had to whitelist sun.com as an ok download site. As soon as I did that the applet sprung into life.
Does your proxy filter on filetype?
-
-
5th December 2006, 02:22 PM #13 Re: Java JRE 1.5.0 performance problems with Squid proxy

Originally Posted by
duncane I'm going to try running an applet from a file URL, and the same applet from my website - hopefully this should narrow down where the problem is likely to be. (Or at least give me enough evidence to say it isn't the JRE itself.)
I've tried running a single class applet (to keep it simple) from a file, and from a website. The same applet runs almost instantaneously from the file, and takes about 6-7 seconds via the network and shows the halo'ed coffee-cup. The network isn't that slow 

Originally Posted by
Geoff As soon as I did that the applet sprung into life.
When you say 'sprung into life', do you mean it worked, or it worked without any objectionable delay?
Cheers.
-
-
5th December 2006, 02:43 PM #14 Re: Java JRE 1.5.0 performance problems with Squid proxy
When you say 'sprung into life', do you mean it worked, or it worked without any objectionable delay?
The page loaded instantly as it was cached. I then got a java logo and 'loading' bar. After about 3 sec I was in the java application.
-
-
17th December 2007, 10:29 AM #15
- Rep Power
- 0
Re: Java JRE 1.5.0 performance problems with Squid proxy
With regard to the Samlearning problem;
We've installed jre 1.6 and tested it (all okay)
All IE 7 security looks okay, everthing allowed and the site trusted.
No firewall software or similar running.
When the samlearning site is loaded the console complains of the following:
java.lang.ClassFormatError: Incompatible magic value 218774632 in class file HueFilter
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknow n Source)
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at ShowFile.start(ShowFile.java:286)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
This is the same no matter what exercise is loaded.
-
SHARE:
Similar Threads
-
By Lee_K_81 in forum *nix
Replies: 14
Last Post: 20th January 2009, 12:04 PM
-
By Jackd in forum Network and Classroom Management
Replies: 2
Last Post: 25th July 2007, 06:54 PM
-
By Ste_Harve in forum Windows
Replies: 2
Last Post: 23rd March 2007, 02:22 PM
-
Replies: 9
Last Post: 8th March 2007, 06:26 PM
-
By pete in forum Networks
Replies: 16
Last Post: 18th January 2007, 12:58 PM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules