BookmarkSubscribeRSS Feed
ravicapg
Fluorite | Level 6

One of the batch Job failed and restarted again and got error like ERROR: System is Terminating Due to Hang Up Signal (SIGHUP)).

 

Can any one please help.

 

Thanks

6 REPLIES 6
nhvdwalt
Barite | Level 11
Someone / something probably issued a kill -15 (or 9) against the UNIX
process that ran your batch job. Does your UNIX environment have any usage
limitations that could maybe trigger the OS to kill your job ?
ravicapg
Fluorite | Level 6

Thanks for quick reply. No one killed job. Could you please explain below variable values and uses. 


core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 1032768
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 350000
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 100000
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited

Kurt_Bremser
Super User

Actually, SIGHUP is signal 1. It is usually issued when a terminal connection breaks.

 

If your scheduler runs from a remote server, it connects to the SAS server via ssh and then issues commands. If the ssh connection drops, the SAS job will receive a SIGHUP (because the connection was "hung up" like a telephone) and terminate gracefully (writing the reason to the log). The scheduler will probably handle this as an internal error and restart the batch job.

If you started the batch job via console login, and either killed the telnet/PuTTY client while the job was running, or had a network outage, or ran into some timeout (eg your PC went into standby), then the result is more or less the same.

To prevent such termination, use the nohup wrapper and put the process into the background:

nohup sasbatch program.sas&

Mind that a broken connection will still be registered as an error condition by a scheduler, so don't use nohup there.

ravicapg
Fluorite | Level 6

Thanks for reply Kurt,

 

How to know if the specific job hangs up from long time? the job not restarted after receive a SIGHUP message. do we want to restart the job again when see like  SIGHUP  ERROR.

 

Thanks

Ravi Inturi

Kurt_Bremser
Super User

In your first post you said "and restarted again". How was the job restarted?


@ravicapg wrote:

Thanks for reply Kurt,

 

How to know if the specific job hangs up from long time? the job not restarted after receive a SIGHUP message. do we want to restart the job again when see like  SIGHUP  ERROR.

 

Thanks

Ravi Inturi


 

nhvdwalt
Barite | Level 11

Thanks @Kurt_Bremser, this is a good explanation.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 6 replies
  • 4624 views
  • 2 likes
  • 3 in conversation