This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes How to application start up time using jboss. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "How to application start up time using jboss." Watch "How to application start up time using jboss." New topic

How to application start up time using jboss.

silamala ramesh babu

Joined: Dec 08, 2011
Posts: 25

Hi All,

I am working in a JAVA project and client is from US.I am working with java,spring,hibernate,Jquery and JBOSS 4. once if i deploy the jar from ANT script ,i am copying the ds file(xml) to the deploy folder where the WAR file is . Then i will start the server by running in run.bat in command the problem is after the server starts successfully ,if i start appliction it is taking very long time.For that purpose we are using virtula machines.In VM's the apllication is working very fastly .So is ther any chance to make it fast in my local machine also .
And why this much time difference in local machine and VM.

Peter Johnson

Joined: May 14, 2008
Posts: 5852

Where is the database located? If the database and the JBoss AS are on the same VM, then I suspect the connection between the app server and the database to be very fast. You indicated the VM was in the US. Are you in India? If so, then you have all of that network latency to deal with.

Another consideration: the first time you access your application, it will attempt to make a database connection. At that time, JBoss AS will create a connection pool. If your *-ds.xml file indicates a large minimum number of connections, then you have to wait for all of them to be established before one if give to your application. (On the other hand, when you access the app running in the VM, the connection pool has probably already been established, thus eliminating the delay based on creating the pool)

So what can you do? So thing to try:
* Create a locale database and use that
* Reduce the min connections in your *-ds.xml file to 1.

JBoss In Action
I agree. Here's the link:
subject: How to application start up time using jboss.
jQuery in Action, 3rd edition