Slow on Linux
I'm trying to run the mashup server on RedHat Enterprise linux 4.5 (512Mb RAM, P4-3Ghz Hyperthreading) _or_ on RedHat Enterprise Linux 5 (1024Mb RAM, P4-2.66Ghz).
On both machines I've tried with Sun JRE 1.5 and 6 ( jre-1_5_0_15-linux-i586-rpm.bin and jre-6u5-linux-i586.rpm ). In both cases it works but it is TERRIBLY SLOW. It takes 3 minutes or more to serve up a single html page. I've also tried on the RedHat 4 machine with LD_ASSUME_KERNEL=2.4.1 setting and with the IBM jre 1.5 ( ibm-java2-i386-jre-5.0-7.0.i386.rpm ) - which fails to create SSL sockets because it's looking for SunX509. Neither of those options even work on RedHat 5.
If I'm patient enough the product appears to work... but it's so horrendously slow. Am I doing something wrong?
- Login or register to post comments
- Printer friendly version
- 398 reads











This is not an issue we've come across
Hi,
This is not an issue we've come across but we will investigate into this and figure out whats wrong. Most of the developers work on ubuntu and the performance on ubuntu is much better than windows (And it does not take 3 mins to load, just a second or so), hence this is not an issue with using Linux. It may be due to some other reason but we will have to set up this enviorenment and test it out. Will get back as soon as we figure out whats going on.
By the way are these machines without internet connectivity?
Thanks,
Keith.
The machines are without
The machines are without internet access, yes. It's on an internal network behind firewalls. All internet access is via proxies and I haven't configured Mashup Server to use any of them (because it shouldn't be talking to the internet).
Actually the lack of Internet connectivity might be a problem
There is a common component in the pages, which reads the 'latest news' about the Mashup Server from a Feed. There's a bug in the reader implementation's time-out mechanism.
- Edit the taskbar.jsp file found in <your-mashup-installation>/lib/tomcat/webapps/ROOT
- Remove the last 8 lines in the file, which contains the following code;
<%
//Preprocessing fetched announcements to check for null
String announcement = announcementsFetcher.get(MashupUtils.getServerUUID(), RegistryUtils.getAnnouncementsUrl());
if (announcement == null) {
announcement = "";
}
%>
<div id="announcements"><%=announcement%></div>
This will solve your problem. We will resolve this issue soon.
Thanks,
Tyrell
That was it! Removing
That was it! Removing those 8 lines allowed the system to respond correctly. Thanks!
But this worries me slightly; from a security perspective no program should "out of the box" try to phone home without getting user permission. Fortunately this is why we have firewalls; to stop this sort of behaviour. It's good to provide such a mashup component, but it should be up to the user to decide whether to include it; not to activate it automatically.
Just saying :-)
Thanks for fixing my problem!