01-28-2016
Java process showing high virtual memory
Hi All,
I have a java process which is showing high virtual memory utilization in client server. But the same process is showing comparitively lesser virtual memory consumption. I understand that virtual memory shown is not of much importance for the general user in normal condition, my client is adament for an answer as to why the virtual memory is shown to be high in their server and not in our internal servers. For starters, I added a variable MALLOC_ARENA_MAX variable to their java code (which i regretfully can't share) and it helped a bit, but didn't show appreciable change. Please suggest. I only want the logic why its shown different in different servers. They are using centos6+. Waiting desperately for your suggestions.Thanks.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello all
im using the ps -ef "args vsz" | some.exe
but the result is in kb , is there some kind of way or flag ( didnt found in the ps man )
to convert me this data to GB or MG in human readable format ?
Thanks (1 Reply)
Discussion started by: umen
1 Replies
2. Shell Programming and Scripting
Hi Unix Gurus i am somewhat new to unix scripting so need your help to
create a script as below.
# This script would find the process consuming memory beyond a certain #limit. if the meemory consumption is more than 100% for a period of 1
# minute for the specific process. the script would... (0 Replies)
Discussion started by: robinforlinux
0 Replies
3. UNIX for Advanced & Expert Users
Hello all,
To do a self-exec or self-restart of a process when it crosses the threshold memory limit, I use the value of virtual memory size field from /proc/$pid/stat file and do a self-exec.
According to man 5 proc
vsize %lu
Virtual memory size in bytes.
I just want to... (2 Replies)
Discussion started by: matrixmadhan
2 Replies
4. Shell Programming and Scripting
Hello Team,
I need help in preparing script to check for high cpu utilisation for java process.
I have many java process on my system which consumes high cpu so i have to monitor
it using script.
---------- Post updated 12-10-10 at 02:21 AM ---------- Previous update was 12-09-10 at... (1 Reply)
Discussion started by: coolguyamy
1 Replies
5. Shell Programming and Scripting
Hello,
I'd like to set a cron job that runs a shell script every 30 minutes or so to restart a java based service if the memory gets above 80%. Any advice on how to do this?
Thanks in advance!
- Ryan (19 Replies)
Discussion started by: prometheon123
19 Replies
6. HP-UX
Hi all,
Is there any command which shows the virtual memory usage of a particular process in HP-UX machine.
I have tried with ps, top but could not get what I want.
Kindly provide me a solution.
Thanks in Advance
ARD (4 Replies)
Discussion started by: ard
4 Replies
7. Red Hat
Hello All,
We have a jave server running on both linux and Solaris environments.
On solaris,it consumes only 600-700MB whereas it goes upto 21G in Linux.
I am monitoring the memory consumption through top command.
Is this high memory consumption expected in Linux? (1 Reply)
Discussion started by: prasperl
1 Replies
8. Solaris
Hi Experts,
Our servers running Solaris 10 with SAP Application. The memory utilization always >90%, but the process on SAP is too less even nothing.
Why memory utilization on solaris always looks high?
I have statement about memory on solaris, is this true:
Memory in solaris is used for... (4 Replies)
Discussion started by: edydsuranta
4 Replies
9. AIX
Hi,
This thread has been posted before on linuxquestions.org, but no answer, maybe because this is unix question and not linux. I'm posting the same thread here, hope I can get an answer from someone in the meantime, I wish I could post of emergency thread but it needs bits which I don't have :... (6 Replies)
Discussion started by: aLuViAn
6 Replies
10. HP-UX
Hi All,
I am using HP-UX 11i v1(B11.11) servers for my work and its memory (RAM) utilization is consistenly 80% for the last one year. Though I am not facing any issues with this high memory utilization I just want to know the below queries:
1) Is it the default behavior of HP-UX systems?
2)... (20 Replies)
Discussion started by: ssk250
20 Replies
mlock(2) System Calls Manual mlock(2)
NAME
mlock() - lock a segment of the process virtual address space in memory
SYNOPSIS
DESCRIPTION
The system call allows the calling process to lock a segment of the process virtual address space into memory. Any addressable segment of
the process' address space may be locked. Locked segments are immune to all routine swapping.
addr must be a valid address in the process virtual address space. addr + len must also be a valid address in the process virtual address
space.
Locks are applied at page boundaries that encompass the range from addr to addr + len. If any address within the range is not valid, an
error is returned and no locks are applied.
or can be used to unlock memory segments (or all memory segments) locked with
Regardless of how many times a process locks a page, a single or will unlock it. An of a page within a range specified in an call results
in only the range specified in the being unlocked.
When memory is shared by multiple processes and mlocks are applied to the same physical page by multiple processes, a page remains locked
until the last lock is removed from that page.
Locks applied with are not inherited by a child process.
The user must have the privilege.
Although and the family of functions may be used together in an application, each may affect the other in unexpected ways. This practice
is not recommended.
Security Restrictions
Some or all of the actions associated with this system call require the privilege. Processes owned by the superuser have this privilege.
Processes owned by other users may have this privilege, depending on system configuration. See privileges(5) for more information about
privileged access on systems that support fine-grained privileges.
RETURN VALUE
returns the following values:
Successful completion.
Failure.
The requested operation is not performed. is set to indicate the error.
ERRORS
If fails, is set to one of the following values:
One or more addresses in the specified range is not valid within
the process address space.
There is not enough lockable memory in the system
to satisfy the locking request.
The parameter was zero.
The user does not have the
privilege.
EXAMPLES
The following call to locks the first 10 pages of the calling process in memory:
SEE ALSO
setprivgrp(1M), getprivgrp(2), mlockall(2), munlock(2), munlockall(2), plock(2), privileges(5).
STANDARDS CONFORMANCE
mlock(2)