• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to application start up time using jboss.

 
silamala ramesh babu
Greenhorn
Posts: 25
Eclipse IDE Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 prompt.now 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
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic