Solved

Quick JVM recycle question

Posted on 2014-02-18
2
1,805 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 27

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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article is about some of the basic and important steps to be used to improve the performance in web-sphere commerce application development. 1) Always leverage the Dyna-caching facility provided by the product 2) Remove the unwanted code …
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

789 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