Skip to main content

GlassFish very slow.

2 replies [Last post]
cjs1976
Offline
Joined: 2013-01-10
Points: 0

Hi!

I changed from Tomcat to GlassFish. Tomcat worked in a normal speed, but GlassFish is very very slow.

I tried to find a solution over many google searches, but I didn't find anything.

Has anyone some informations for me?

Thanks,
Christian.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Kristian Rink

Hi;

> Hi! I changed from Tomcat to GlassFish. Tomcat worked in a normal speed, but
> GlassFish is very very slow. I tried to find a solution over many google
> searches, but I didn't find anything. Has anyone some informations for me?

Hmmm. First starting point, as far as I could tell, should be

http://docs.oracle.com/cd/E18930_01/html/821-2431/index.html ;

this one provides a bunch of valuable information regarding getting more
performance out of Glassfish. If you didn't already, you really should dive
through this and see where it gets you.

That aside, I think helping you out here is difficult to impossible given the
information you provided, especially considering terms such as "normal speed"
or "very very slow" which are rather vague. When moving from tomcat to
Glassfish ages ago, I had a similar experience which (by then) was caused by
obviously my application blocking all the worker threads in the Glassfish
default configuration which drastically slowed down everything. It's really
hard to say without knowing more or having a look at your machine.

Maybe also of interest:

http://weblogs.java.net/blog/kalali/archive/2009/03/monitoring_glas.html

You can use VisualVM (which comes with the recent JDK versions) to have a
pretty deep look into a running Glassfish instance.

Good luck,
Kristian

cjs1976
Offline
Joined: 2013-01-10
Points: 0

Hi!

Thank you for your help. I tried to get the information, and i tried some tips, but it didn't help.

I have a windows server 2003. i installed the community edition (so i miss the tuning tool).

I have a notebook with windows 8 and a ssd. i installed netbeans 7.3 rc1 with glassfish. the speed of this glassfish is the same then on my server :-(

So if I have a good hardware, and the system has the same speed... I have no idea.

The response of the normal GlassFish is normal.

But the administration is very slow. it need 10 seconds, before the login comes. I need 20 seconds after entering my account data to see the whole admin gui. and also the most operations take 20 seconds before i get any response...

Any idea???

Thanks,
Christian.