Ask Your Question

Puppet master 4 without Java

asked 2016-09-01 19:51:42 -0500

updated 2016-09-02 07:33:43 -0500

How do I install just the puppet master service 4.x without Java required by the puppetserver package?

root@puppet:~# free -m
             total       used       free     shared    buffers     cached
Mem:           241        212         29          0         20         84
-/+ buffers/cache:        106        135
Swap:          354          0        354
root@puppet:~# grep ^JAVA_ARGS /etc/default/puppetserver
JAVA_ARGS="-Xms2m -Xmx2m -XX:MaxPermSize=2m"
root@puppet:~# service puppetserver start
 * Starting puppetserver Puppet Labs version-checking backend puppetserver             [fail]
root@puppet:~# cat /var/log/puppetlabs/puppetserver/puppetserver-daemon.log
# java.lang.OutOfMemoryError: Java heap space
# -XX:OnOutOfMemoryError="kill -9 %p"
#   Executing /bin/sh -c "kill -9 1862"...
root@puppet:~# facter | grep virtual # just if you wondered bout the memsize
is_virtual => true
virtual => vmware

I don't want any Java. I just want the puppetmaster daemon itself. I don't like to compile anything by myself (though for a few things I do).

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2016-09-02 09:55:27 -0500

pascal gravatar image

I assume you want to use OS puppet, then the answer lies here:

Question is: is an Apache webserver better then Java? Also see the deprecation warning.

edit flag offensive delete link more

Comments „Puppet Server is an application that runs on the Java Virtual Machine (JVM)“ I don't get. For me it still sounds insane (running a JVM). PS: I've _been_ using PP 3.8 from so far.

Kai Burghardt gravatar imageKai Burghardt ( 2016-09-02 10:52:03 -0500 )edit Gee, it wants at least 1GB RAM. That's so crazy to serve a few dozen of computers. I just can't throw around with RAM. It's a limited resource. Though I do have so much, I can't comprehend this enormous jump, how it's justified.

Kai Burghardt gravatar imageKai Burghardt ( 2016-09-02 14:37:04 -0500 )edit

Those docs are intended to be a guideline, to try to cover the broadest possible number of use cases for beginning users. If you only have a few dozen agents you should be able to get by with significantly less memory; perhaps even 256m.

cprice404 gravatar imagecprice404 ( 2016-09-02 15:12:14 -0500 )edit

At least now (with 256M limit) it doesn't abort due to an outOfMemory exception. But for something else. >sigh< So frustrating. Is there already a fork out there keeping up track with puppetserver but w/o Java?

Kai Burghardt gravatar imageKai Burghardt ( 2016-09-03 18:16:33 -0500 )edit

Could you share what the error is and perhaps we can help you fix it? Puppet Server should be much *easier* to install and get up and running than the previous versions; if you're not finding that to be true, we'd like to fix the root cause.

cprice404 gravatar imagecprice404 ( 2016-09-12 14:49:54 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2016-09-01 19:51:42 -0500

Seen: 111 times

Last updated: Sep 02 '16