Solved

Quick JVM recycle question

Posted on 2014-02-18
2
1,613 Views
Last Modified: 2014-02-18
Hello,

Quick question on a JVM recycle / restart.  If I have a  single JVM with a single application on it.  Would recyling just the application piece accomplish the same thing as recycling the whole JVM itself?  Or does a full restart / recycle of the JVM involve other pieces as well?

Thanks
0
Comment
Question by:blinkme323
2 Comments
 
LVL 26

Accepted Solution

by:
dpearson earned 500 total points
ID: 39867924
Each Java process has its own JVM.

If you have a container (like e.g. Tomcat) it can contain multiple applications that together form a single process.  Generally restarting a web application does not imply restarting the entire container, so it's a subset of restarting the entire JVM even if there is only one web application present.

If you want a complete, clean restart you should restart the JVM.

If you want a logical restart of just a part of the process, you can do a web application restart, which will solve most issues but is less complete them restarting the entire JVM.

Hope that helps,

Doug
0
 

Author Closing Comment

by:blinkme323
ID: 39868183
Thanks!
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now