06-28-2017 12:57 PM
Hello Cisco Community,
I'm very new to CPO and I would like to know how to kill a long running process that seemingly has no end, or has gotten stuck.
Does CPO have a solution to this from either Server / Client side?
If it doesn’t, what alternatives do I have to free up the memory that my server might be consuming?
Thank you,
Jonathan Gil Santillan
06-28-2017 01:17 PM
06-28-2017 01:21 PM
Hi Tuan,
Thanks for your reply and i mean a CPO Process.
Is there a way to automatically shut down a process if it seems to be not responding after a while, like some kind of timeout?
Thanks,
Jonathan
06-28-2017 02:02 PM
Hmm... Here is an idea that just pops up. Give it a try to see if works. :)
(I'll build a community automation pack for it once I get a chance)
Good luck
-Tuan
07-03-2017 10:16 AM
Thank you Tuan, i'll look into this.
07-05-2017 03:30 PM
Johnathan,
I monitor this forum and provide any help I can.
If you have more questions, please post it here. It will allow others to help as well.
-Tuan
tuatran2@cisco.com
07-06-2017 01:30 PM
I was wondering if you would please help me with a step-by-step guide on how to stop long running processes? i wasn't very successful using your idea.
I just made a dummy process that will last a long time and i would like to know how to stop it via some trigger from another process.
Also, how would i obtain the id from this long running process?
Thanks
Jonathan Gil Santillan
07-06-2017 01:33 PM
I'll try to produce a TAP for you. I'm running PO 3.4. Do you have an environment running version 3.4 to import the sample TAP?
-Tuan
07-06-2017 01:38 PM
07-06-2017 03:45 PM
Here is the TAP file to illustrate the idea I posted above. I've run very limited testing on it.
I have a global variable to indicate the timeout value. If a process is running long than that number of seconds, it will be terminated.
Currently, the triggers are configured to monitor for processes with the name starts with "Long Running Process".
07-07-2017 06:34 AM
Thank you Tuan,
I'll look into it!
-Jonathan Gil Santillan
07-05-2017 12:48 PM
Hi Tuan,
Would you please share your e-mail with me?
Thanks
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide