Object Instantiation During Compliation and Deployment
Parag Pattankar
Greenhorn
Joined: Dec 11, 2009
Posts: 3
posted
0
Hi,
Can someone please explain how does the object instantiation during Compliation and deployment of Application on the App Server affect the performance of an application?
Pallu Sagar
Greenhorn
Joined: Dec 04, 2009
Posts: 16
posted
0
Hello,
With the basic concept of Static binding and run-time binding,
you can profile you application Jprofiler to understand it more.
-Sagar
Parag Pattankar
Greenhorn
Joined: Dec 11, 2009
Posts: 3
posted
0
Hi Sagar,
Thanks for your reply.
I am trying to understand how does JVM/CLR behave during compliation and deployment. Many times we observe that the first request from the client takes a little longer to be serviced by the App Server than the subsequent requests. This is mainly due to numerous reasons like Caching, DB getting indexed or etc. My question may look very vague, but my intention is to understand what happens inside JVM or CLR during the first request from the Client on the App server.
Most app servers (you never said which one!) do lazy loading of database connections. Thus no connections are made until the first request needs a connection,at which point the minimum number of specified connections are created in a pool and one is given to the requestor.
Another significant startup issue is that any JSPs (or similar web page building mechanisms) have to have their Java code generated and compiled.
Hello Peter,
Thank you for your reply.
I see your point of lazy loading by the App/DB Servers. I have observed this First hit delay in App Servers like JBOSS and IIS 6.
Is there any way the required number of connection be indexed or cached over the App/DB Server layer where the Client gets the connection instantly?
In JBoss AS you can write a startup mbean that asks for a connection, thus causing the minimal number of connections to be created during app server startup.
I would give you a link to the startup mbean entry in the JBoss wiki, but it appears to be down at this time.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: Object Instantiation During Compliation and Deployment