Operating System - HP-UX
1846601 Members
2407 Online
110256 Solutions
New Discussion

Ulimit Exceeded while running at command

 
Shivam Tiwari
Honored Contributor

Ulimit Exceeded while running at command

Hi All,

There is a script running on my HPUX box every 15 minutes. I investigated as and when this line in the script is executed

echo echo 26274 > /var/opt/OV/tmp/OpC/cron_mon.tmp26274 | at -q u now 1> /var/opt/OV/tmp/OpC/cron_mon.tmp 2>& 1

A message is logged in /var/adm/cron/log file like this

> CMD: 1102607180.u
> root 26283 u Thu Dec 9 10:46:20 EST 2004
< root 26283 u Thu Dec 9 10:46:20 EST 2004
> CMD: 1102607625.u
> root 26918 u Thu Dec 9 10:53:45 EST 2004
< root 26918 u Thu Dec 9 10:53:45 EST 2004

and I got a mail from root stating

SYSTEMNAME
To:root
cc:
Subject:at 12/07/04 01:23 PM
sh[28]: ulimit: The specified value exceeds the user's allowable limit.
*************************************************
Cron: The previous message is the standard output and standard error of one of your cron commands.

I am unable to figure out iof which parameter the ulimit has exceeded.

TIA
Shivam Tiwari
Never say No. Say I will Do it........
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: Ulimit Exceeded while running at command

Might want to insert some diagnostics into the script that cron is calling.

ulimit -a

to display the current values.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Shivam Tiwari
Honored Contributor

Re: Ulimit Exceeded while running at command

This is a system of the customer I will submit the ulimit -a later but you can look into the kernel paramaters

Parameter Current Dyn Planned Module Version
===============================================================================
NSTRBLKSCHED - - 2
NSTREVENT 50 - 50
NSTRPUSH 16 - 16
NSTRSCHED 0 - 0
STRCTLSZ 1024 - 1024
STRMSGSZ 65535 - 65535
acctresume 4 - 4
acctsuspend 2 - 2
aio_listio_max 256 - 256
aio_max_ops 2048 - 2048
aio_physmem_pct 10 - 10
aio_prio_delta_max 20 - 20
allocate_fs_swapmap 0 - 0
alwaysdump 1 - 1
bcvmap_size_factor 2 - 2
bootspinlocks - - 256
bufcache_hash_locks 128 - 128
bufpages 0 - 0
chanq_hash_locks 256 - 256
core_addshmem_read 0 Y 0
core_addshmem_write 0 Y 0
create_fastlinks 0 - 0
dbc_max_pct 50 - 50
dbc_min_pct 5 - 5
default_disk_ir 0 - 0
desfree - - 0
disksort_seconds 0 - 0
dnlc_hash_locks 512 - 512
dontdump 0 - 0
dskless_node - - 0
dst 1 - 1
effective_maxpid - - ((NPROC<=30000)?30000:(NPROC*5/4))
eisa_io_estimate - - 0x300
enable_idds 0 - 0
eqmemsize 15 - 15
executable_stack 1 - 1
file_pad - - 10
fs_async 0 - 0
ftable_hash_locks 64 - 64
hdlpreg_hash_locks 128 - 128
hfs_max_ra_blocks 8 - 8
hfs_max_revra_blocks 8 - 8
hfs_ra_per_disk 64 - 64
hfs_revra_per_disk 64 - 64
hp_hfs_mtra_enabled 1 - 1
hpux_aes_override - - 0
initmodmax 50 - 50
io_ports_hash_locks 64 - 64
iomemsize - - 40000
ksi_alloc_max 2208 - 2208
ksi_send_max 32 - 32
lotsfree - - 0
max_async_ports 50 - 50
max_mem_window 0 - 0
max_thread_proc 64 - 64
maxdsiz 0x10000000 - 0x10000000
maxdsiz_64bit 0x40000000 - 0x40000000
maxfiles 60 - 60
maxfiles_lim 1024 Y 1024
maxqueuetime - - 0
maxssiz 0x800000 - 0x800000
maxssiz_64bit 0x800000 - 0x800000
maxswapchunks 890 - 890
maxtsiz 0x4000000 Y 0x4000000
maxtsiz_64bit 0x40000000 Y 0x40000000
maxuprc 75 Y 75
maxusers 32 - 32
maxvgs 10 - 10
mesg 1 - 1
minfree - - 0
modstrmax 500 - 500
msgmap 42 - 42
msgmax 8192 Y 8192
msgmnb 16384 Y 16384
msgmni 50 - 50
msgseg 2048 - 2048
msgssz 8 - 8
msgtql 40 - 40
nbuf 0 - 0
ncallout 515 - 515
ncdnode 150 - 150
nclist 612 - 612
ncsize 5596 - 5596
ndilbuffers 30 - 30
netisr_priority - - -1
netmemmax - - 0
nfile 910 - 910
nflocks 200 - 200
nhtbl_scale 0 - 0
ninode 476 - 476
nkthread 499 - 499
nni - - 2
no_lvm_disks 0 - 0
nproc 276 - 276
npty 60 - 60
nstrpty 60 - 60
nstrtel 60 - 60
nswapdev 10 - 10
nswapfs 10 - 10
nsysmap 800 - 800
nsysmap64 800 - 800
o_sync_is_o_dsync 0 - 0
page_text_to_local - - 0
pfdat_hash_locks 128 - 128
public_shlibs 1 - 1
region_hash_locks 128 - 128
remote_nfs_swap 0 - 0
rtsched_numpri 32 - 32
scroll_lines 100 - 100
scsi_max_qdepth 8 Y 8
scsi_maxphys 1048576 - 1048576
sema 1 - 1
semaem 16384 - 16384
semmap 66 - 66
semmni 64 - 64
semmns 128 - 128
semmnu 30 - 30
semmsl 2048 Y 2048
semume 10 - 10
semvmx 32767 - 32767
sendfile_max 0 - 0
shmem 1 - 1
shmmax 0x4000000 Y 0x4000000
shmmni 200 - 200
shmseg 120 Y 120
st_ats_enabled 1 - 1
st_fail_overruns 0 - 0
st_large_recs 0 - 0
st_san_safe 0 - 0
streampipes 0 - 0
swapmem_on 1 - 1
swchunk 2048 - 2048
sysv_hash_locks 128 - 128
tcphashsz 0 - 0
timeslice 10 - 10
timezone 420 - 420
unlockable_mem 0 - 0
vas_hash_locks 128 - 128
vnode_cd_hash_locks 128 - 128
vnode_hash_locks 128 - 128
vps_ceiling 16 - 16
vps_chatr_ceiling 1048576 - 1048576
vps_pagesize 4 - 4
vx_fancyra_enable 0 - 0
vx_maxlink 32767 - 32767
vx_ncsize 1024 - 1024
vx_ninode 0 - 0
vxfs_max_ra_kbytes 1024 - 1024
vxfs_ra_per_disk 1024 - 1024
Never say No. Say I will Do it........
Sanjay_6
Honored Contributor

Re: Ulimit Exceeded while running at command

Hi,

Maybe this link will help,

http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000063204487

The itrc doc id is KBRC00000888.

Hope this helps.

regds
A. Clay Stephenson
Acclaimed Contributor

Re: Ulimit Exceeded while running at command

When you don't bother to identify your OS release, it makes it more difficult to answer.

This is one fix I used since 10.20 days:

Modify your /var/adm/cron/.proto line "ulimit $l" to :

if [ $l -eq 4194304 ]
then
ulimit unlimited
else
ulimit $l
fi

Also look for and apply the latest at/cron patches appropriate to your OS.
If it ain't broke, I can fix that.
Shivam Tiwari
Honored Contributor

Re: Ulimit Exceeded while running at command

Hi,

The OS is HPUX 11.11

Thanks
Never say No. Say I will Do it........
Shivam Tiwari
Honored Contributor

Re: Ulimit Exceeded while running at command

Same as last reply
Never say No. Say I will Do it........