• Post Reply Bookmark Topic Watch Topic
  • New Topic

when we run class file  RSS feed

 
amod gole
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

i want to know that what happens when we run class file
1]any temperory file get created if then where in which folder
2]jvm instance can we see that instance
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16046
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1]any temperory file get created if then where in which folder

That depends on the implementation of the JVM you're using. I don't think any of Sun's JVMs (for any platform) writes temporary files when you start it.

2]jvm instance can we see that instance

I don't understand what you mean here, please explain what you'd like to know.
 
amod gole
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Jesper de Jong,

when we run any java application,for that application one jvm instance is get created ,this is some one explain me.and i also observed that when i run java application taskmanager shows that one java.exe is running
when i run another java application it shows another java.exe in taskmanager(processes) this is on winxp but on another pc of same configuration and same winxp it shows only one java.exe

why this type of behavior for two same machine with same os



and plaese give me answer of my class data sharing(cds) question
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're mistaken about the second PC. Each time you start java.exe, you get a new copy of java.exe, simple as that. java.exe won't run multiple applications in one process.

If I recall, your question about class data sharing had something to do with serial vs. parallel garbage collector. The basic answer is that on a single-processor desktop machine, you're likely to run multiple java.exes, and they would benefit from sharing class data. Since there's only a single processor, parallel GC isn't much of an advantage.

But on a multiprocessor server machine, you're likely to run just one JVM, with mamny webapps in it. That one JVM doesn't need to share class data since there are no other JVMs. But parallel GC is a good thing, as there are multiple processors to run on.

Make sense?
 
amod gole
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Ernest Friedman-Hill ,

as you say that when we run class file one java.exe get created and one java.exe cannot run multiple application ok i agree with you.

now from start
for one application one java.exe
for second application second java.exe

this is what you are saying and my machine also showing same thing

but when i explain same concept to my friend on another machine with same configuration same version(java) same operating system

for first application it shows one java.exe
but when i run another application then also it is showing only one java.exe

and thanks for reply




 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!