• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to application start up time using jboss.

 
Greenhorn
Posts: 25
Hibernate Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic