|
I'm stumped on this one... the process just dies, and leaves nothing particularly revealing in /var/log/mail.log
Started by Alex R on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at serverfault):
I once had a mysterious....
Anything in /var/log/messages or /var/log/syslog around the time of failure?
Without more details of exploration it could be anything from the out-of-memory (oom)-killer stopping the process, to logrotate not restarting the service .
|
|
I'm looking for a way to monitor a process, and relaunch the executable if the process dies for whatever reason. Does Linux have a built-in tool that can do this?
Answer Snippets (Read the full thread at serverfault):
To restart it if it dies? The problem with this is that it doesn't handle situations where it freezes.
|
|
Hi I've got a script which works fine on our development server but dies on the clients server.
error_reporting(E_ALL); if (function_exists('simplexml_load_file')) echo "function exists"; if (file_exists('test.xml')) { echo("<hr>just about to read...
Started by zzapper on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
In the case of simplexml_load_file() , the error info is well documented
On errors, it will ... .
Try using the @ operator like this:
$xml = @simplexml_load_file( 'test.xml' ); if( !$xml ) { // error!!! }
Depends on the manner in which the function fails .
|
Ask your Facebook Friends
|
I discovered 'ThreadStaticAttribute', and I have a lot of questions about it: all my previous thread dependent static informations, were implemented as a static dictionary wich TKey is Thread, and when I wanted to access it, I used Thread.CurrentThread...
Started by Miguel Angelo on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The only exception....
The garbage collector will automatically pick them up when both the thread and the object are no longer reachable by rooted objects .
No you do not need to delete instances of values help in a field which is tagged with ThreadStatic .
|
|
Swap full set of lee 223rem dies (in red tub) for lee 243win dies Have a full set of Lee 223rem dies in red plastic tub that i would like to swap for the same in 243win. The dies are in a used condition and have paper insert and dipper,also the factory...
Started by rasputin on
, 4 posts
by 3 people.
Answer Snippets (Read the full thread at airgunbbs):
The dies are in a used condition to respond to this thread but nothing seems....
Originally Posted by rasputin Have a full set of Lee 223rem dies in red plastic tub that i would like to swap for the same in 243win.
Really really really free....
|
|
I've got a COM solution with a client (an EXE) and a server (a service EXE). When the client is killed, or dies abnormally, I'd like to know about it in the server. Unfortunately, it appears that COM doesn't call Release when this happens.
How can I tell...
Started by Roger Lipscombe on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Also you can think ....
It can be for example time based or on occasional base .
Instead you can create very simple callback to implement 'ping' .
Killing is rather extremal process, so neither CORBA, nor COM/DCOM nor Java's RMI has no explicit work around .
|
|
I'm currently using Quartz Scheduler as a replacement for Cron on our Windows 2003 Server Box. I have two specific Jobs that needed to be started in a new VM, so I'm using the ProcessBuilder object in Java 5 to get my "Process" object. The problem I'm...
Started by SacramentoJoe on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Class ProcessKiller extends Thread { private Process process = null; public ProcessKiller(Process p) { this.process = p; } public void run() { try { p.destroy(); } catch ( Throwable e ) {} } } Runtime.getRuntime().addShutdownHook... .
You can use a shutdown hook.
|
|
I have a Dell XPS 1640 laptop (aka Dell Studio XPS 16), running Vista. Whenever the laptop wakes up from sleep, my Broadcomm LAN card immediately dies. Any attempt to access it completely locks up whichever program I use to access it. There appears to...
Started by Bugmaster on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at superuser):
Some ideas :
Look in your BIOS for the suspend ACPI options and try to switch modes among... .
Have you tried restarting the network connections service from services.msc it's a bit brute force but it might work, otherwise it's sounding like a hardware issue .
|
|
I have a python script, which I daemonise using this code
def daemonise(): from os import fork, setsid, umask, dup2 from sys import stdin, stdout, stderr if fork(): exit(0) umask(0) setsid() if fork(): exit(0) stdout.flush() stderr.flush() si = file('...
Started by uswaretech on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You just write your application without any daemonization, to run on foreground; Then create a daemontools service folder for it, and it will discover... .
It is a proven, well tested tool to run anything daemonized .
What I've used in my clients is daemontools.
|
|
We have an IIS hosted web method which is randomly dying on us about 10% of the time. In trying to debug this we've added Log.Debug() messages in front of every real code line and it appears to be dying on random lines.
Has anyone seen this or have an...
Started by ShaneC on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
But many things can cause a thread to appear to "just die." Memory issues: are you doing any.
|