Minecraft's java process will not die on closure (or at all for that matter)
#1
Posted 06 August 2012 - 08:48 PM
After all daemons are running in the background I can go open up minecraft. My RAM usage is at 21% before all of this (so wasteful! I have 8gb of ram!). I open minecraft and my RAM is at 31%. Not bad. I close minecraft. My RAM usage is at 31% still. I go into the task manager to kill the process, It doesn't die. I open up cmd and use taskkill /F on the process, it still won't die. I find this utility called pskill which attacks the process in a more direct manager using the -t flag which finds all instances of the application and kills them, it still won't die. I've also tried using the kill process tree option, it still will not kill the process.
I was thinking this might be an issue due to an outdated java version, so I head to java.com and download the latest oracle JRE version. I install it and it asks me if I would like to reinstall. It's at the latest version, I install anyway. I restart my computer to kill any running java processes for good and start anew. I try the same things as described in the first paragraph. Minecraft runs, and the java process lingers still. It's like a zombie application in linux, I can't kill it. I wish windows had some sort of "kill -9" option.
This has only begun happening as of minecraft 1.3.1. I cannot say this has happened in 1.2.5. I am using the "Magic Launcher" with a vanilla copy of minecraft 1.3.1 (AKA no mods). I have not tried this with the normal minecraft launcher application, I will try this after I post this. I'm probably not the only one with this problem. If this is the case and using the normal minecraft launcher fixes this, I will leave this thread here for the use of others. On the chance that the same thing occurs and this does not fix my problem, I ask the community to aid me in my quest of troubleshooting.
Thanks in advance,
Dragos240
#2
Posted 06 August 2012 - 08:51 PM
#3
Posted 06 August 2012 - 08:55 PM
First of all, you didn't say which process it was, verify the process running is not "Jusched.exe" and is infact "Javaw.exe". Jusched.exe is Java's auto updater and always runs, Javaw.exe is the actual Java runtime.
If it is Javaw, then I'm really not sure... you could try going to Control Panel > Programs > Java, then clicking "Advanced" > "+ Debug" and ticking "create log file" and see if anything is constantly outputting into the log file. If so, use the info in the log file to found what app it is and kill that.
#5
Posted 06 August 2012 - 08:57 PM
lnoobinatorl, on 06 August 2012 - 08:51 PM, said:
As stated in the first post (did you read it?), rebooting does indeed fix the issue. However, I would not like to continually reboot every time I play minecraft. This is an issue that I must find the cause of.
I thought that I had found the solution. I used the normal minecraft launcher and everything seemed to work upon exit. Strangely, this appears to be the same for the magic launcher now. I had only gone into the main menu of both. I will attempt to create a new world and try again.
CraftNinja2011, on 06 August 2012 - 08:55 PM, said:
First of all, you didn't say which process it was, verify the process running is not "Jusched.exe" and is infact "Javaw.exe". Jusched.exe is Java's auto updater and always runs, Javaw.exe is the actual Java runtime.
If it is Javaw, then I'm really not sure... you could try going to Control Panel > Programs > Java, then clicking "Advanced" > "+ Debug" and ticking "create log file" and see if anything is constantly outputting into the log file. If so, use the info in the log file to found what app it is and kill that.
Actually the process was Java.exe not Javaw.exe. I'm not entirely sure what the difference is between the two.
Thanks,
Dragos
#6
Posted 06 August 2012 - 08:59 PM
dragos240, on 06 August 2012 - 08:57 PM, said:
I thought that I had found the solution. I used the normal minecraft launcher and everything seemed to work upon exit. Strangely, this appears to be the same for the magic launcher now. I had only gone into the main menu of both. I will attempt to create a new world and try again.
Thanks,
Dragos
I've heard that sometimes the memory usage will stay while Java cleans the memory that is left after a Java app closes.
But then again, I don't know, I know next to nothing about how programs/OS's bring RAM into the operating memory and then remove it, I don't know if it's instant or overtime, nor do I know if the OS can do it all by itself or if the program has to deal with it's own operating memory clean up.
#7
Posted 06 August 2012 - 09:03 PM
Thanks,
Dragos
#8
Posted 06 August 2012 - 09:13 PM
dragos240, on 06 August 2012 - 09:03 PM, said:
Thanks,
Dragos
Erm, don't use magic launcher or a .bat file to start MC.
Because java.exe is the console java process, it is usually started with the command line (batch files, and if magic launcher using windows commands in it's coding, that too), javaw.exe is what should be the process when starting minecraft using the proper launcher.
#9
Posted 06 August 2012 - 09:13 PM
I am able to reproduce the bug by playing minecraft for a while using the magic launcher. I don't know about the vanilla launcher. I'll try that next.
EDIT: The vanilla launcher does the same thing. I am able to reproduce the bug using the vanilla launcher. The only difference is the name of the application. Java.exe is now Javaw.exe. It too, is unkillable.
Thanks,
Dragos
#10
Posted 06 August 2012 - 09:25 PM
dragos240, on 06 August 2012 - 09:13 PM, said:
I am able to reproduce the bug by playing minecraft for a while using the magic launcher. I don't know about the vanilla launcher. I'll try that next.
EDIT: The vanilla launcher does the same thing. I am able to reproduce the bug using the vanilla launcher. The only difference is the name of the application. Java.exe is now Javaw.exe. It too, is unkillable.
Thanks,
Dragos
Have you done a SQUEAKY clean Java re-installation? http://www.minecraft...ng-thread/#java
That will tell you how to completely remove Java from your system (not just un-install, there's more to it than that) and then get the latest version.
#11
Posted 06 August 2012 - 09:27 PM
CraftNinja2011, on 06 August 2012 - 09:25 PM, said:
That will tell you how to completely remove Java from your system (not just un-install, there's more to it than that) and then get the latest version.
I have not. I'm following said instructions now. I will get back to you once this process is completed and I'll tell you if the problem is fixed.
Thanks,
Dragos
#12
Posted 06 August 2012 - 09:37 PM
#13
Posted 06 August 2012 - 10:01 PM
I should mention that I'm running Windows 7 64-bit. 64 bit seems to be a bit buggy, perhaps that's contributing? I'll follow the link again because I saw after that, they mentioned how to log minecraft errors. I will do that now:
27 achievements 195 recipes Setting user: dragos240, d5794b9146edaee56f3e800f84758c816eea4698 LWJGL Version: 2.4.2 Starting up SoundSystem... Initializing LWJGL OpenAL (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) OpenAL initialized. Connecting to trees.enthouse.net, 25565 Connecting to trees.enthouse.net, 25565 Stopping! SoundSystem shutting down... Author: Paul Lamb, www.paulscode.com
There's nothing unusual about the log file. The command prompt that was running minecraft will not close, however.
Thanks,
Dragos
#14
Posted 06 August 2012 - 10:06 PM
dragos240, on 06 August 2012 - 10:01 PM, said:
I should mention that I'm running Windows 7 64-bit. 64 bit seems to be a bit buggy, perhaps that's contributing? I'll follow the link again because I saw after that, they mentioned how to log minecraft errors. I will do that now:
27 achievements 195 recipes Setting user: dragos240, d5794b9146edaee56f3e800f84758c816eea4698 LWJGL Version: 2.4.2 Starting up SoundSystem... Initializing LWJGL OpenAL (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) OpenAL initialized. Connecting to trees.enthouse.net, 25565 Connecting to trees.enthouse.net, 25565 Stopping! SoundSystem shutting down... Author: Paul Lamb, www.paulscode.com
There's nothing unusual about the log file. The command prompt that was running minecraft will not close, however.
Thanks,
Dragos
The Command Prompt window won't close while minecraft is open. Once you close minecraft the window should close with it, if it doesn't, then there may be something wrong with your Windows OS. I have Windows 7 64bit and have no problems, make sure you have no viruses and that a virus hasn't mangled your Windows installation.
Also, go to Control Panel > Programs > Java, click "advanced", then "+ Java console" and tick "show console", then, run minecraft using the magic launcher - a command prompt-esque window will pop up, DO NOT CLOSE IT, then do as usual and close minecraft, then look at the command prompt-esque window mentioned and tell me if it keeps showing spitting out lines of code once minecraft has closed.
#16
Posted 07 August 2012 - 12:32 AM
#17
Posted 07 August 2012 - 10:23 AM
DJMatch3000, on 07 August 2012 - 12:32 AM, said:
Now, THAT sounds weird. Make sure nothing is using your Java constantly by enabling debugging? I'm kinda outta my depth on this one.
Now, for you, dragos, I think this is a relatively harmless issue, if you start up a resource hungry process, then Windows might close java to free up space for it (I can't say for sure...).
#18
Posted 07 August 2012 - 11:52 AM
CraftNinja2011, on 06 August 2012 - 10:06 PM, said:
Also, go to Control Panel > Programs > Java, click "advanced", then "+ Java console" and tick "show console", then, run minecraft using the magic launcher - a command prompt-esque window will pop up, DO NOT CLOSE IT, then do as usual and close minecraft, then look at the command prompt-esque window mentioned and tell me if it keeps showing spitting out lines of code once minecraft has closed.
Hello again,
I've tried this. The console will not appear using either the vanilla launcher or the magic launcher. On the contrary, I see output when I play minecraft in browser (chrome).
I played a little bit in a single player world, then connected to a server. Here is the console's output:
Java Plug-in 10.5.1.255 Using JRE version 1.7.0_05-b06 Java HotSpot(TM) Client VM User home directory = C:\Users\Harley ---------------------------------------------------- c: clear console window f: finalize objects on finalization queue g: garbage collect h: display this help message l: dump classloader list m: print memory usage o: trigger logging q: hide console r: reload policy configuration s: dump system and deployment properties t: dump thread list v: dump thread stack x: clear classloader cache 0-5: set trace level to <n> ---------------------------------------------------- 27 achievements 195 recipes Setting user: dragos240, 2032900554505214960 LWJGL Version: 2.4.2 Starting up SoundSystem... Initializing LWJGL OpenAL (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) OpenAL initialized. Aug 07, 2012 7:38:15 AM axu b INFO: Starting integrated minecraft server version 1.3.1 Aug 07, 2012 7:38:15 AM axu b INFO: Generating keypair Aug 07, 2012 7:38:15 AM net.minecraft.server.MinecraftServer d INFO: Preparing start region for level 0 Aug 07, 2012 7:38:16 AM net.minecraft.server.MinecraftServer a_ INFO: Preparing spawn area: 69% Aug 07, 2012 7:38:17 AM et a INFO: dragos240[/127.0.0.1:0] logged in with entity id 500 at (-106.3577885884089, 68.0, 432.8737727914519) Aug 07, 2012 7:38:17 AM axu p INFO: Saving and pausing game... Aug 07, 2012 7:38:17 AM net.minecraft.server.MinecraftServer a INFO: Saving chunks for level 'New World'/xd@1fffd9d Aug 07, 2012 7:38:17 AM net.minecraft.server.MinecraftServer a INFO: Saving chunks for level 'New World'/xc@13c9854 Aug 07, 2012 7:38:17 AM net.minecraft.server.MinecraftServer a INFO: Saving chunks for level 'New World'/xe@134c9ff -27, 39 Aug 07, 2012 7:40:42 AM axu p INFO: Saving and pausing game... Aug 07, 2012 7:40:42 AM net.minecraft.server.MinecraftServer a INFO: Saving chunks for level 'New World'/xd@1fffd9d Aug 07, 2012 7:40:42 AM net.minecraft.server.MinecraftServer a INFO: Saving chunks for level 'New World'/xc@13c9854 Aug 07, 2012 7:40:42 AM net.minecraft.server.MinecraftServer a INFO: Saving chunks for level 'New World'/xe@134c9ff Aug 07, 2012 7:40:42 AM axu p INFO: Saving and pausing game... Aug 07, 2012 7:40:42 AM net.minecraft.server.MinecraftServer a INFO: Saving chunks for level 'New World'/xd@1fffd9d Aug 07, 2012 7:40:42 AM net.minecraft.server.MinecraftServer a INFO: Saving chunks for level 'New World'/xc@13c9854 Aug 07, 2012 7:40:42 AM net.minecraft.server.MinecraftServer a INFO: Saving chunks for level 'New World'/xe@134c9ff Aug 07, 2012 7:40:43 AM axu p INFO: Saving and pausing game... Aug 07, 2012 7:40:43 AM net.minecraft.server.MinecraftServer a INFO: Saving chunks for level 'New World'/xd@1fffd9d Aug 07, 2012 7:40:43 AM net.minecraft.server.MinecraftServer a INFO: Saving chunks for level 'New World'/xc@13c9854 Aug 07, 2012 7:40:43 AM net.minecraft.server.MinecraftServer a INFO: Saving chunks for level 'New World'/xe@134c9ff Aug 07, 2012 7:40:44 AM net.minecraft.server.MinecraftServer j INFO: Stopping server Aug 07, 2012 7:40:44 AM net.minecraft.server.MinecraftServer j INFO: Saving players Aug 07, 2012 7:40:44 AM net.minecraft.server.MinecraftServer j INFO: Saving worlds Aug 07, 2012 7:40:44 AM net.minecraft.server.MinecraftServer a INFO: Saving chunks for level 'New World'/xd@1fffd9d Aug 07, 2012 7:40:44 AM net.minecraft.server.MinecraftServer a INFO: Saving chunks for level 'New World'/xc@13c9854 Aug 07, 2012 7:40:44 AM net.minecraft.server.MinecraftServer a INFO: Saving chunks for level 'New World'/xe@134c9ff Connecting to trees.enthouse.net, 25565
The bug appeared to manifest itself when doing this. There does not seem to be any strange behaviour as reported in the console log. When playing on a remote server, the log is not verbose at all, when playing locally, it is very verbose.
It's important to note that after I closed the minecraft tab, the console also disappeared with it as it was supposed to.
CraftNinja2011, on 07 August 2012 - 10:23 AM, said:
Now, for you, dragos, I think this is a relatively harmless issue, if you start up a resource hungry process, then Windows might close java to free up space for it (I can't say for sure...).
Unfortunately this is not the case. Logging out seems to kill all java processes as well as a reboot. This is not very convenient for me. Java will refuse to die when it comes to minecraft. As I had not experienced such a problem with 1.2.5, I will test to see if the same behaviour manifests itself with 1.2.5. If it does, it sounds like a strange java issue.
EDIT: New info. I've found that after running minecraft in chrome through the java plugin, if I attempt to kill javaw.exe with the task manager, I get an error! This is very good as we previously had very little info as to what the cause could potentially be. Here is the error:
The operation could not be completed. Access is denied.
Thanks,
Dragos
#19
Posted 07 August 2012 - 12:08 PM
#20
Posted 07 August 2012 - 12:16 PM
CraftNinja2011, on 07 August 2012 - 12:08 PM, said:
To see if the same happened to me, I reloaded my task manager. Java.exe and Javaw.exe are still running in the background. I should mention that if I continue to open minecraft and reproduce the bug, my ram usage can be up to 90%+ as separate java processes continue to be spawned. This is a large issue and must be troubleshooted.
Thank you,
Dragos









