aspose file tools*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Why EJB running slow" Watch "Why EJB running slow" New topic
Author

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?

Thanks


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

Joined: May 26, 2003
Posts: 29287
    
140

Sharmila,
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)


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, 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: http://aspose.com/file-tools
 
subject: Why EJB running slow
 
Similar Threads
EJB simple client is not running
@EJB annotation from servlet and JBoss
Trouble in getting started with EJB3
How to run Hello World example in Eclipse with Glassfish v3 as appserver
Problem running code from EJB in action book (chapter1)