Solved

Quick JVM recycle question

Posted on 2014-02-18
2
1,871 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
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…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

696 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