Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: How to auto-kill orphaned processes if there is still a live one?

04 Aug 2015   #1
MrWoody

Windows 7 Professional 64 bit
 
 
How to auto-kill orphaned processes if there is still a live one?

I just started my first IT job last month for a company that makes/markets foodservice items (mostly bakeware/servingware), and we have a Lenovo M79 tower and a monitor set up just outside out CEO's office for the purpose of displaying the security cameras at our new warehouse. (very impressive....blah blah blah) We had to run the security camera IP addresses in firefox, but i can't remember exactly why.
We were hoping to make this run self-sufficient without anyone having to babysit it. I used a small app called caffeine to keep the computer from ever going to sleep, the firefox add-on "ReloadEvery" to refresh the page every 5 minutes so the stream doesn’t freeze up, and "Wise Memory Optimizer" which is SUPPOSED to clean the memory if it drops below a certain level (5GB), but here’s the problem:

Every time the page refreshes, it starts a new "jp2launcher" process for java. It doesn’t shut down the old ones, it just starts a new one. So the last time I checked in task manager, it had almost 80 "jp2launcher" processes sitting there doing nothing but taking up memory and just one that was actually running. I could barely get it to respond enough to restart it. I know I can shut them down one by one, but then i'm the babysitter stopping by several times a day to wipe it's butt. is there a program that could shut them down automatically as soon as they are orphaned even though there is one instance still running?

This computer has literally been used by no one else for anything else, so i wouldn't suspect malware.

Thanks in advance

MrWoody


My System SpecsSystem Spec
.
04 Aug 2015   #2
LMiller7

Windows 7 Pro 64 bit
 
 

You would do well avoiding "Wise Memory Optimizer" and all programs of it's kind. Windows 7 has very good memory management, does not need, and will not benefit from such programs. The only dubious benefit of these programs is to make the Task Manager numbers more attractive to people who do not understand what they mean.

I actually tried this program, just to see what it did mind you, and was thoroughly unimpressed. For a program claiming to optimize memory it did everything wrong.

At free this program is overpriced.
My System SpecsSystem Spec
04 Aug 2015   #3
DavidE

Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64
 
 

Quote   Quote: Originally Posted by MrWoody View Post
Every time the page refreshes, it starts a new "jp2launcher" process for java. It doesn’t shut down the old ones, it just starts a new one. So the last time I checked in task manager, it had almost 80 "jp2launcher" processes sitting there doing nothing but taking up memory and just one that was actually running. I could barely get it to respond enough to restart it. I know I can shut them down one by one, but then i'm the babysitter stopping by several times a day to wipe it's butt. is there a program that could shut them down automatically as soon as they are orphaned even though there is one instance still running?
You can try using the taskkill command to kill the orphaned tasks.
Open a Command Prompt (CMD) and enter this command to read the help for taskkill:
taskkill /?

Here is a GUESS at a command that might be what you are looking for.
Hopefully this would kill all jp2launcher processes that have a status not equal RUNNING:
taskkill /IM jp2launcher /FI "STATUS ne RUNNING"

If you get the command to do what you want, save the command as a BAT file.
You could then set up a Scheduled Task to run the BAT file as often as you want.

hth,
David
My System SpecsSystem Spec
.

05 Aug 2015   #4
UsernameIssues

W7 Pro SP1 64bit
 
 

I agree with LMiller7. Uninstall anything from WISE.

You should not need any app just to prevent the computer from going to sleep. Just set the power settings as desired.

DavidE has given a good solution to killing old jp2launcher processes, but you really should not have to do that. Reloading a website that uses Java should start a second instance of jp2launcher, but that second instance should exit when it sees the first instance is running.

What version of Firefox are you using?
What version of Java?
Both will need attention to update...
...but if people won't be surfing elsewhere
...then maybe not updating is okay.

Before you settled in on using Firefox, did you look into using VLC? You can show multiple cameras at once.
My System SpecsSystem Spec
06 Aug 2015   #5
MrWoody

Windows 7 Professional 64 bit
 
 

ok, so point well taken on the wise deal. it's now deleted. So, being brand new to all this, i couldn't tell you what the reasoning was behind running it in firefox, but i do have the IP address, and i suppose i could try running it in something else. As far as the use of the caffeine program, the power settings for "never sleep" did not work. i would walk by several time a day and it would be asleep with the screen off and i would have to log back in. The caffeine app emulates the "F15" keystroke every 59 seconds to keep it awake and seems to work wonderfully. I did try the command line DavidE suggested, but it did not work. I restarted the computer earlier, and set the refresh to every 10s just to make them pile up to try the command and get a good screenshot. It should be attached.

As far as Firefox, i am running v39.0
Java: Version 8 update 51

I'll keep working on this, thanks for the input and help to a noob


Attached Thumbnails
How to auto-kill orphaned processes if there is still a live one?-camera-issues.jpg  
My System SpecsSystem Spec
06 Aug 2015   #6
MrWoody

Windows 7 Professional 64 bit
 
 

OK, so i just decided to try killing all of them just for the fun of it. Again....i'm new to this, so bear with my ignorance.

The attached screenshot shows where it killed them, but i tried refreshing and re-starting the task manager, and they are all still there.....thoughts?


Attached Thumbnails
How to auto-kill orphaned processes if there is still a live one?-cam-iss-2.jpg  
My System SpecsSystem Spec
06 Aug 2015   #7
UsernameIssues

W7 Pro SP1 64bit
 
 

Have you asked Salient Systems (Contact Us |*Salient Systems) why this happens when refreshing the browser?

Having 16 VLC windows might not look as nice, but they could be (automatically?*) arranged so that all of the screen's real estate is used.


*I would script the opening, size and loation of each VLC window using AutoIt... which I might be able to help you with.
My System SpecsSystem Spec
07 Aug 2015   #8
MrWoody

Windows 7 Professional 64 bit
 
 

i've emailed Salient and am currently looking into Java Runtime Environment. I just thought i was "good with computers" till i took this job lol
My System SpecsSystem Spec
07 Aug 2015   #9
UsernameIssues

W7 Pro SP1 64bit
 
 

There are tons of things that you will encounter at work that just never come up for the home user.

Maybe as a test, you could stream one of the cameras to VLC and just minimize that window. It would be interesting to see if VLC solves the freeze that you mentioned: "ReloadEvery" to refresh the page every 5 minutes so the stream doesn’t freeze up.


But back to working on your current setup:
While we wait to hear back from Salient, what happens if you kill all instances of jp2launcher? Does the Salient app still work within firefox? My thinking is: jp2launcher might just launch the Java apps. It might not be needed after that. If it turns out that you do not need any instances of jp2launcher running after the Java apps load, then maybe a script could kill each instance of jp2launcher after a period of time (e.g. kill jp2launcher two minutes after jp2launcher first appears).

To test this, restart the computer so that you one have one or two instances of jp2launcher to manually kill via Task Manager. I know that you failed to kill jp2launcher in post #6... but give it a try via Task Manager.


If Salient cannot solve the issue with their software and we must stick with the Firefox/Salient combo, then we can stop using ReloadEvery and use a script to exit and then restart Firefox. Not pretty, but functional.
My System SpecsSystem Spec
07 Aug 2015   #10
MrWoody

Windows 7 Professional 64 bit
 
 

Thanks so much for the help.
So, interesting thing just happened. This morning i set the parameters in Java so that it could use no more than 512mb of memory, but apparently that didn't work. I walked by the aforementioned computer and all the "cameras" had gone white. I already had task manager pulled up, and took the attached screenshot. When i tried to paste it into paint, the computer informed me that memory was low and suggested i terminate.........firefox. Before i could even decide on the matter, it did it for me.

I then watched in the task manager as one-by-one the "jp2launcher" processes closed by themselves. This, of course, leads me to believe that i could do as USERNAMEISSUES mentioned and do a script to re-start firefox. The problem with that is that there is a username/password for the camera's webaddress. it auto-populates when the site is opened, but someone has to click "ok", correct? or is there a script for that as well? (again....never done a script).
Also, i will keep looking into using VLC. i've just been busy today.


Attached Thumbnails
How to auto-kill orphaned processes if there is still a live one?-ci.jpg  
My System SpecsSystem Spec
Reply

 How to auto-kill orphaned processes if there is still a live one?




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
cannot delete orphaned HomeGroup shares in Win 7
I have three Windows 7 computers, one a laptop and the other two are desktops. The laptop and one desktop are Win 7 Prof. and the remaining desktop is Win 7 Ultimate. All computers are part of my HomeGroup and share is set up for all default libraries, My Documents, My Pictures, My Music and My...
Network & Sharing
Explorer.exe - Kill all processes at once
How to Kill all Explorer.exe Instances with One Move This tutorial will show you how to kill all running explorer.exe (windows explorer) windows at once in Vista and Windows 7. (in cases of crashes or debugging reasons) The usual way of killing explorer.exe process is by opening Task...
Tutorials
Chkdsk keeps finding the same problem - Orphaned Files.
Hey All, I've been running chkdsk on my external drive (Data Backup). Every time I run it I get the same error that it's found a problem and fixed it. But if I run it again I get the same Error again that it keeps finding the same orphaned file. I don't seem to be able to fix it. Drive...
Performance & Maintenance
Does anybody here remembers this program(to kill running processes)?
I had a program on Windows XP that I used every time that I tried to close an application or to safely remove my external HD, when an error message appeared that said that some process is still running and I need to close it first... you all know how annoying this is. With this program I could...
Software
Can Live Messenger auto-install be disabled?
After just a couple of days, I'm pretty comfortable with my new Sony Vaio with Windows 7, but cannot overcome a niggle. Whenever I open Hotmail, the system attempts to install Windows Live Messenger, which I don't want. Can I disable the automatic process?
Software
orphaned icons
I have been playing about with IconPackager. While there were some really nice icon packs I didnt really find any that I wanted to keep and so uninstalled IP. However it hasnt restored all the default icons. Is there a way I can do this?
Customization


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 09:35.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App