Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Allow to set the Java XX:ReservedCodeCacheSize.
Browse files Browse the repository at this point in the history
On large Puppetservers the ReservedCodeCache can be increased regarding
the Puppetserver tuning guide.
https://puppet.com/docs/puppetserver/latest/tuning_guide.html#potential-java-args-settings
Regarding the Oracle JavaSE 8 guide this parameter is called
ReservedCodeCacheSize.
https://docs.oracle.com/javase/8/embedded/develop-apps-platforms/codecache.htm
To achive this, the Puppetserver module should also allow to set this
value.
  • Loading branch information
keachi committed Jan 7, 2020
1 parent d9b7559 commit 6c740fd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@ class { 'puppetserver': }
class { 'puppetserver::repository': } ->
class { 'puppetserver':
config => {
'java_args' => {
'xms' => '4g',
'xmx' => '6g',
'maxpermsize' => '512m',
'tmpdir' => '/tmp',
'java_args' => {
'xms' => '4g',
'xmx' => '6g',
'maxpermsize' => '512m',
'reservedcodecachesize' => '512m',
'tmpdir' => '/tmp',
},
'webserver' => {
Expand Down Expand Up @@ -127,7 +128,7 @@ gem { 'hiera-eyaml':
provider => puppetserver_gem,
}
```

## Contributing

Please report bugs and feature request using [GitHub issue
Expand All @@ -136,7 +137,7 @@ tracker](https://github.com/camptocamp/puppet-puppetserver/issues).
For pull requests, it is very much appreciated to check your Puppet manifest
with [puppet-lint](http://puppet-lint.com/) to follow the recommended Puppet style guidelines from the
[Puppet Labs style guide](http://docs.puppetlabs.com/guides/style_guide.html).


## Transfer Notice

Expand Down
5 changes: 5 additions & 0 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
type => 'java_arg',
;

'java_args/reservedcodecachesize':
setting => '-XX:ReservedCodeCacheSize=',
type => 'java_arg',
;

'webserver/port':
setting => 'webserver.conf/webserver/port',
type => 'puppetserver',
Expand Down

0 comments on commit 6c740fd

Please sign in to comment.