- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- High Load Queue, High Idle Time, Java
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2006 10:07 PM
тАО01-05-2006 10:07 PM
High Load Queue, High Idle Time, Java
I've a hp-ux 11i running mainly java 1.3 and I'm experiencing a "strange" situation, top shows high load queue, but idle time is also high!:
Atached find some top/sar statistics.
Any ideia on how can I improve this situation? The system response is strange, sometimes whe typing comands on shell things freeze for 2 or 3 seconds....
Thks,
Pedro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2006 10:12 PM
тАО01-05-2006 10:12 PM
Re: High Load Queue, High Idle Time, Java
Do you have required patches for Java installed on your server ? http://h18012.www1.hp.com/java/patches/index.html
Try upgrading to JDK1.4 or 1.5 since 1.3 is going to be dead on March'06.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2006 10:17 PM
тАО01-05-2006 10:17 PM
Re: High Load Queue, High Idle Time, Java
Yes I have the latest patche bundles installed:
root@poru9011:/tmp# /usr/sbin/swlist | grep -e QPK -e GOLD -e BUNDLE11i
BUNDLE11i B.11.11.0102.2 Required Patch Bundle for HP-UX 11i, February 2001
GOLDAPPS11i B.11.11.0509.429 Applications Patches for HP-UX 11i v1, September 2005
GOLDBASE11i B.11.11.0509.429 Base Patches for HP-UX 11i v1, September 2005
Upgrading to more recent Java versions is not an option :((
Pedro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2006 10:26 PM
тАО01-05-2006 10:26 PM
Re: High Load Queue, High Idle Time, Java
Can you try using HPJmeter to see what exactly happens ? Since this is java, it requires exhaustive analysis
http://www.hp.com/products1/unix/java/hpjmeter/index.html
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2006 11:16 PM
тАО01-05-2006 11:16 PM
Re: High Load Queue, High Idle Time, Java
May I suggest the following after I have reviewed the attachment:
1. Install PHCO_32466. This is a "top" cumulative patch. Need to make sure the "top" is reporting correct figures.
2. From your "top" output, I am seeing username "transfer" has multiple Java processes. Is this normal?
Note: there is a zombie process reported in your "top" too. Use "ps -elf" and check on "S" column for process that has "Z" status, this is a zombie process. Kill it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2006 11:35 PM
тАО01-05-2006 11:35 PM
Re: High Load Queue, High Idle Time, Java
can you give the output of kmtune -l or sysdef. This problems can happen when your kernel is not compiled the right way for java.
For java you must increase a lot of kernel parameters such as.
max_thread_proc.
grtz. Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2006 11:38 PM
тАО01-05-2006 11:38 PM
Re: High Load Queue, High Idle Time, Java
Can you tell me your swap situation and timeslice parameter value?
Best Regards,
Eric Antunes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2006 11:39 PM
тАО01-05-2006 11:39 PM
Re: High Load Queue, High Idle Time, Java
root@poru9011:/# sysdef
NAME VALUE BOOT MIN-MAX UNITS FLAGS
acctresume 4 - -100-100 -
acctsuspend 2 - -100-100 -
allocate_fs_swapmap 0 - - -
bufpages 26214 - 0- Pages -
create_fastlinks 0 - - -
dbc_max_pct 20 - - -
dbc_min_pct 5 - - -
default_disk_ir 0 - - -
dskless_node 0 - 0-1 -
eisa_io_estimate 768 - - -
eqmemsize 23 - - -
file_pad 10 - 0- -
fs_async 0 - 0-1 -
hpux_aes_override 0 - - -
maxdsiz 503866 - 0-503866 Pages -
maxdsiz_64bit 262144 - 1024-1073479679 Pages -
maxfiles 2048 - 30-2048 -
maxfiles_lim 2048 - 30-2048 -
maxssiz 2048 - 0-98048 Pages -
maxssiz_64bit 2048 - 4-262144 Pages -
maxswapchunks 2048 - 1-16384 -
maxtsiz 16384 - 0-503859 Pages -
maxtsiz_64bit 262144 - 1024-1073741823 Pages -
maxuprc 200 - 3- -
maxvgs 10 - - -
msgmap 39 - 3- -
nbuf 21216 - 0- -
ncallout 7235 - 6- -
ncdnode 150 - - -
ndilbuffers 30 - 1- -
netisr_priority -1 - -1-127 -
netmemmax 0 - - -
nfile 30010 - 14- -
nflocks 200 - 2- -
ninode 4796 - 14- -
no_lvm_disks 0 - - -
nproc 4116 - 10- -
npty 60 - 1- -
nstrpty 60 - - -
nswapdev 10 - 1-25 -
nswapfs 10 - 1-25 -
public_shlibs 1 - - -
remote_nfs_swap 0 - - -
rtsched_numpri 32 - - -
sema 0 - 0-1 -
semmap 63 - 4- -
shmem 0 - 0-1 -
shmmni 200 - 3-1024 -
streampipes 0 - 0- -
swapmem_on 1 - - -
swchunk 2048 - 2048-16384 kBytes -
timeslice 10 - -1-2147483648 Ticks -
unlockable_mem 16664 - 0- Pages -
I already run the HPjconfig from HP to tune the kernel.
Thks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2006 03:00 AM
тАО01-06-2006 03:00 AM
Re: High Load Queue, High Idle Time, Java
The load average values shown in top could be verified using
sar -q
Glance
uptime
w
# adb /stand/vmunix /dev/kmem
adb>avenrun/3F
There is a patch for load avarage
PHKL_33336.
Since the system responce is not normal, there is a resource problem for sure on the system. The attached report show swapping is being done.
I would do complete system check up using
sar , vmstat , iostat, netstat , Glance
syslog, demsg , swapinfo -tam, bdf etc.
For Java side, I would check the java processes using q4/p4 to know what they are doing and resources being used could be known as well. Verifying java specific kernel parameters such as maxssize,max-thread_proc, nkthread and ulimit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2006 03:04 AM
тАО01-06-2006 03:04 AM
Re: High Load Queue, High Idle Time, Java
I suspect you are running into heavy
swapping. This will kill performance
in the manner you are experiencing.
Java garbage collection will cycle most
of the pages into memory each run. If
there are a lot of objects being created
and discarded this can occur every few
seconds. Starting transfer will smaller
memory limits could help.
Can you nice or stop most of the transfer
processes?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2006 03:11 AM
тАО01-06-2006 03:11 AM
Re: High Load Queue, High Idle Time, Java
The server is for running those java processes with username "transfer", that's what I want the server to do so no use to nice or stop them.
Thks,
Pedro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2006 08:42 PM
тАО01-08-2006 08:42 PM
Re: High Load Queue, High Idle Time, Java
Here is a link wich can help to tune the os for java.
http://www.hp.com/products1/unix/java/infolibrary/prog_guide/java1/index.html.
grtz. Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2006 09:09 PM
тАО01-08-2006 09:09 PM
Re: High Load Queue, High Idle Time, Java
the important que global priority run queue.
You can check it with glance.
Prepare a file as follows. (call it glance.syntax"
print "global priority queue", gbl_pri_queue
Do you have a very high priority queue??
Also is system experiencing any kind of bottleneck?? -disk i/o, memory, swap, cpu??
disk i/o may show the behaviour you are experiencing now. Check global wait states in glance. glance -B, glance -i, iostat, sar -d
Also not to forget java patches.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2006 09:18 PM
тАО01-08-2006 09:18 PM
Re: High Load Queue, High Idle Time, Java
It seems that those java processes are eating lots of memory.
See "who" are they with the attached script (usage: mostra_procs_pesados.sh
It may be a bug...
Best Regards,
Eric Antunes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2006 09:19 PM
тАО01-08-2006 09:19 PM
Re: High Load Queue, High Idle Time, Java
It seems that those java processes are eating lots of memory.
See "who" are they with the attached script (usage: mostra_procs_pesados.sh
It may be a bug...
Best Regards,
Eric Antunes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2006 09:36 PM
тАО01-08-2006 09:36 PM
Re: High Load Queue, High Idle Time, Java
Thank you for your reply, attached find sar/glance/iostat stats, would you have a look?
Thank you very much,
Pedro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2006 09:49 PM
тАО01-08-2006 09:49 PM
Re: High Load Queue, High Idle Time, Java
Post vmstat 1 5 also.
Check what processes are usig most of the memory. With java processes, you can control what heap size (initial/max) they can use. java --h for details. That you can control some java sizes.
UNIX95= ps -ef -o pid,ruser,vsz,args|sort -nrk3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2006 10:20 PM
тАО01-08-2006 10:20 PM
Re: High Load Queue, High Idle Time, Java
Attached find the vmstat statistics.
Thks,
PEdro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2006 10:26 PM
тАО01-08-2006 10:26 PM
Re: High Load Queue, High Idle Time, Java
http://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,1616,00.html
(You should have DSPP membership in order to view this page, its free!)
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2006 10:27 PM
тАО01-08-2006 10:27 PM
Re: High Load Queue, High Idle Time, Java
http://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,1607,00.html
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2006 10:42 PM
тАО01-08-2006 10:42 PM
Re: High Load Queue, High Idle Time, Java
Yes, you are swapping. Denoted by "po" column in vmstat. Also look at swapinfo -mat
Check how java processes are using the memory.
ps -efx | grep -i [j]ava
check particularly the the arguments passed to them. I am sure that you will see high figures. These options control how much memory they will grab. Unless you make them of reasonable value, your problem will not go away. (these values are max heap sizes, initial heap size and such things. Again java --h will give you details about what these options and values should be)
Also make sure you are up to date on java patches.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2006 02:30 AM
тАО01-09-2006 02:30 AM
Re: High Load Queue, High Idle Time, Java
What you're experiencing is not "strange" - you simply are just running too many java processes that your system can handle. You should already have found out by this time that Java is "hog" -- CPU and memory (specially).
We have java 1.4 and 1.5 and the story is unchanged. java is still is a resource hog that you need to carefully plan your resources for.