[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-1670?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13625821#comment-13625821
 ] 

Enis Soztutar commented on ZOOKEEPER-1670:
------------------------------------------

bq. I can make the change but i dont have the HW to test it out
I can test it. 
bq. do we want different default env vars for server and client?
>From what it seems, CLIENT only refers to zkCli. We do not need a huge heap 
>for that. Are you thinking of ZOOKEEPER_CLIENT_HEAPSIZE and 
>ZOOKEEPER_SERVER_HEAPSIZE? 

                
> zookeeper should set a default value for SERVER_JVMFLAGS and CLIENT_JVMFLAGS 
> so that memory usage is controlled
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-1670
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1670
>             Project: ZooKeeper
>          Issue Type: Bug
>    Affects Versions: 3.4.5
>            Reporter: Arpit Gupta
>            Assignee: Arpit Gupta
>             Fix For: 3.4.6
>
>         Attachments: ZOOKEEPER-1670.patch, ZOOKEEPER-1670.patch, 
> ZOOKEEPER-1670.patch
>
>
> We noticed this with jdk 1.6 where if no heap size is set the process takes 
> up to 1/4 of mem available on the machine.
> More info 
> http://stackoverflow.com/questions/3428251/is-there-a-default-xmx-setting-for-java-1-5
> You can run the following command to see what are the defaults for your 
> machine
> {code}
> java -XX:+PrintFlagsFinal -version 2>&1 | grep -i -E 
> 'heapsize|permsize|version'
> {code}
> And we noticed on two different class of machines that this was 1/4th of 
> total memory on the machine.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to