Service memory


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Service memory
# 1  
Old 04-14-2015
Service memory

Hi

I am modifying the arguments for starting a java service.
It has some predefined arguments and I am adding my argument to increase the heap size. When starting the service my argument(Xmx256M) gets added at the end like this:-

Code:
java -server -XX:MaxPermSize=128M -Xms32M -Xmx512M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Xmx256M

Now i am confused what would be the heap size. would it be 512 or 256.

Thanks
# 2  
Old 04-14-2015
If you give the same option more than once with different option-arguments , most utilities will use the last value given; but that is not universal and there are many exceptions. Look at the java man page on your system to see if it specifies the behavior in this case. If the man page doesn't say anything, you can try various combinations to see if you can figure out whether java on your system takes the first specified value, the last specified value, the highest specified value, the lowest specified value, or refuses to accept conflicting values.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Run one service after another service has finished - systemd

Hi all I would like to know how to run task2.service after task1.service has finished. task1.service has a timer (task1.timer), that makes it run every 5 minutes OnCalendar=*:0/5task2.service is basically a script, that has to work on the files created after task1 has finished. This is what I... (2 Replies)
Discussion started by: guilliber
2 Replies

2. Solaris

[DOUBT] Memory high in idle process on Solaris 10 (Memory Utilization > 90%)

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

3. Solaris

How to find Total and Free Physical Memory and Logical Memory in SOLARIS 9

Hi, Im working on Solaris 9 on SPARC-32 bit running on an Ultra-80, and I have to find out the following:- 1. Total Physical Memory in the system(total RAM). 2. Available Physical Memory(i.e. RAM Usage) 3. Total (Logical) Memory in the system 4. Available (Logical) Memory. I know... (4 Replies)
Discussion started by: 0ktalmagik
4 Replies
Login or Register to Ask a Question