File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Why EJB running slow Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Why EJB running slow" Watch "Why EJB running slow" New topic

Why EJB running slow

Sharmila Punde
Ranch Hand

Joined: Dec 26, 2007
Posts: 133
Dear All,
The following is successfully deployed enterprise application, which is deployed in glassfish server. It has ejb, war and application client module.

I can access ejb using HelloUserServlet and HelloUserClient. But both takes long to reply.
What can i do to increase speed?


Regards, Sharmila.
We will have a future if we save Nature!
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33102

You could use @Local instead of @Remote to speed things along, but that may not meet your requirements.

How long is it taking? Do you know where the bottleneck is? (CPU, RAM, network)

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Sharmila Punde
Ranch Hand

Joined: Dec 26, 2007
Posts: 133
Thanks Jeanne,
I have 2GB RAM, CPU does NOT show 100%. My machine use modem as a gateway, is it a problem? My machine has one physical interface which has local ip address like 192.168...... Gateway is modem. So i think glassfish might be searching something outside. Not sure, but let me check with etherial and see. Or may be i need to set specific gateway in glassfish. It takes near about 30-45 seconds to get response of any request. Even adminstartion panel of glassfish takes 1-2 minute to load on the same machine. So looks like it is network problem.
Thanks, i will check details and let you know!
I agree. Here's the link:
subject: Why EJB running slow
jQuery in Action, 3rd edition