09-19-2017
JVM processes are not getting memory allocation as soon as started
Hi,
i have this scenario, when i start about 20 java processes simultaneously in unix and run ps -eaf command i can see that processes are running but memory is not getting allocated to them immediately and it stays ideal for at least 10-15 min.
Meanwhile i run free command to check the RAM, it stays available and nothing is allocated to those processes.
RAM is about 24 GB and each java process i am starting at min and max 1024MB.
could someone please let me know is there any way to start them fast.
Thanks in advance!
Regards,
Vishal
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I would like to know how I could allocate some more memory to a process.
Please note that I am not the root user. (1 Reply)
Discussion started by: sagar
1 Replies
2. Programming
I have a program that will fetch some particular lines and store it in a buffer for further operations.The code which is given below works but with some errors.I couldn't trace out the error.Can anybody help on this plz??
#include <stdio.h>
#include <stdlib.h>
#include<string.h>
#define... (1 Reply)
Discussion started by: vigneshinbox
1 Replies
3. HP-UX
Hi,
Im using HP UX and tried to increase the JVM memory from 1GB to 2GB for the weblogic domain. but it did not work and started throwing errors. I would like to know if there is any OS level parameter that need to be checked and modified before making changes to JVM memory. (3 Replies)
Discussion started by: rsivasan
3 Replies
4. Programming
Hi Experts
I need some help in static memory allocation in C. I have a program in which I declared 2 variables, one char array and one integer. I was little surprised to see the addresses of the variables.
First:
int x;
char a;
printf("%u %u\n', &x, a);
I got the addresses displayed... (2 Replies)
Discussion started by: unx_freak
2 Replies
5. Solaris
When i changed jvm memory settings from 3048 to 3548, appsserver could not start. if no change , it was normal. How do we change .otherwise i had a out of swap space error appeared after 3hrs period when do the monitoring of java application. (1 Reply)
Discussion started by: vijill
1 Replies
6. UNIX for Advanced & Expert Users
Hi all I'm trying to find a one line command that would show me all columns of the ps -ef command for all the processes started by our id that weren't started today, so where column 5 is non-numeric. I get the results I need by running three commands but was wondering if there is a way to print... (3 Replies)
Discussion started by: rethymno19
3 Replies
7. Shell Programming and Scripting
i need to find memory usage by JVM in shell prompt,
i tried with
pidVal=$( ps -ef | grep "/opt/bea2/jrockit/bin/java -jrockit" | grep -v grep | awk -F' ' '{print $2}' | tr "\n" "," | cut -d ',' -f1 )
top -b -n 1 | grep $pidVal
this will just give cpu usage and ram... How do i find... (4 Replies)
Discussion started by: vivek d r
4 Replies
8. UNIX for Advanced & Expert Users
Hello,
i need just a Unix command line (AIX 6) that gives me the memory/CPU used by a WebSphere JVM from it's PID such as ps -ef | grep 'jvm name'.
I know jstat -gc PID but it didn't work
Could you help me please
Thanks
Christian (1 Reply)
Discussion started by: steiner
1 Replies
9. UNIX for Dummies Questions & Answers
Hi all,
I am starting a JVM in unix and when I use ps command on the pid of process starting JVM the output is something like this :-
java -Xms32M -Xmx64M -Xmx128M
I need to know what would be the value of Xmx in this case.
And how to check that this value be picked while starting JVM... (3 Replies)
Discussion started by: Raj999
3 Replies
10. UNIX for Dummies Questions & Answers
Hi ,
Whenever I am starting JVM it is getting started with Xms as 256MB, which is 1/64 of the Memory available and by default this should happen.
But I want to change and start the every JVM with 128MB.
Is there any way to do or I have to manually specify Xms tag while starting JVM.
Thanks (1 Reply)
Discussion started by: Raj999
1 Replies
JSVC(1) Apache Commons Daemon project JSVC(1)
NAME
jsvc - application to launch java daemon
SYNOPSIS
jsvc [-jvm JVM name] [-client client JVM] [-server server JVM] [-classpath path] [-cp path] [-java-home directory] [-version] [-help] [-?]
[-nodetach] [-debug] [-check] [-user user] [-wait waittime] [-umask mask] [-stop] [-verbose:class|gc|jni]
[-outfile /full/path/to/file] [-errfile /full/path/to/file] [-pidfile /full/path/to/file] [-Dproperty=value] [-Xoption]
DESCRIPTION
jsvc executes classfile that implements a Daemon interface.
OPTIONS
-jvm JVM name
use a specific Java Virtual Machine.
-client client JVM
use a client Java Virtual Machine.
-server server JVM
use a server Java Virtual Machine.
-cp/ -classpath directory and zip/jar files
set search path for service classes and resouces
-java-home directory
set the path of your JDK or JRE installation (or set the JAVA_HOME environment variable)
-version
show the current Java environment version (to check correctness of -home and -jvm. Implies -nodetach)
-help
show this help page (implies -nodetach)
-nodetach
don't detach from parent process and become a daemon
-debug
verbosely print debugging information
-check
only check service (implies -nodetach)
-stop
stop the service using the file given in the -pidfile option
-wait waittime
wait up to waittime seconds for the service to start waittime should multiple of 10 (min=10)
-umask mask
sets the file mode creation mask
-user user
user used to run the daemon (defaults to current user)
-verbose[:class|gc|jni]
enable verbose output
-outfile /full/path/to/file
Location for output from stdout (defaults to /dev/null). Use the value '&2' to simulate '1>&2', or 'SYSLOG' to send output to the
system log.
-errfile /full/path/to/file
Location for output from stderr (defaults to /dev/null). Use the value '&1' to simulate '2>&1', or 'SYSLOG' to send output to the
system log.
-pidfile /full/path/to/file
Location for output from the file containing the pid of jsvc (defaults to /var/run/jsvc.pid)
-D<name>=<value>
set a Java system property
-X<option>
set Virtual Machine specific option
AUTHOR
JSVC is part of the Apache Commons Daemon project. Authors are Jean-Frederic Clere, Remy Maucherat, Yoav Shapira, Bill Barker, Mladen Turk.
JSVC is released under the Apache License Version 2.0.
Jsvc version 1.0.6 08/17/2012 JSVC(1)