MaxPermSize on yarn

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

MaxPermSize on yarn

Gwenhael Pasquiers

Hi,

 

We’re having some OOM permgen exceptions when running on yarn.

 

We’re not yet sure if it is either a consequence or a cause of our crashes, but we’ve been trying to increase that value… And we did not find how to do it.

 

I’ve seen that the yarn-daemon.sh sets a 256m value.

It looks to me that it’s also possible to customize the YarnClient JVM args, but it will only be for the client, not for the TaskManagers.

 

Do you know of a way to do it ?

 

B.R.

 

Gwenhaël PASQUIERS

Reply | Threaded
Open this post in threaded view
|

Re: MaxPermSize on yarn

rmetzger0
Hi Gwen,

there is a configuration value called "env.java.opts", that allows you to pass custom JVM args to JM and TM JVMs.

I hope that helps.



On Mon, Nov 16, 2015 at 5:30 PM, Gwenhael Pasquiers <[hidden email]> wrote:

Hi,

 

We’re having some OOM permgen exceptions when running on yarn.

 

We’re not yet sure if it is either a consequence or a cause of our crashes, but we’ve been trying to increase that value… And we did not find how to do it.

 

I’ve seen that the yarn-daemon.sh sets a 256m value.

It looks to me that it’s also possible to customize the YarnClient JVM args, but it will only be for the client, not for the TaskManagers.

 

Do you know of a way to do it ?

 

B.R.

 

Gwenhaël PASQUIERS


Reply | Threaded
Open this post in threaded view
|

RE: MaxPermSize on yarn

Gwenhael Pasquiers

We tried to add : -yD env.java.opts="-XX:MaxPermSize=256m"

 

But we’ve got to investigate since we have to following error :

 

Improperly specified VM option 'MaxPermSize'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

 

Either is the option is badly supported, or it is incorrectly passed to the VM (maybe the “-XX:” causes some issues in the scripts).

 

We’ll investigate.

 

From: Robert Metzger [mailto:[hidden email]]
Sent: lundi 16 novembre 2015 19:18
To: [hidden email]
Subject: Re: MaxPermSize on yarn

 

Hi Gwen,

 

there is a configuration value called "env.java.opts", that allows you to pass custom JVM args to JM and TM JVMs.

 

I hope that helps.

 

 

 

On Mon, Nov 16, 2015 at 5:30 PM, Gwenhael Pasquiers <[hidden email]> wrote:

Hi,

 

We’re having some OOM permgen exceptions when running on yarn.

 

We’re not yet sure if it is either a consequence or a cause of our crashes, but we’ve been trying to increase that value… And we did not find how to do it.

 

I’ve seen that the yarn-daemon.sh sets a 256m value.

It looks to me that it’s also possible to customize the YarnClient JVM args, but it will only be for the client, not for the TaskManagers.

 

Do you know of a way to do it ?

 

B.R.

 

Gwenhaël PASQUIERS

 

Reply | Threaded
Open this post in threaded view
|

Re: MaxPermSize on yarn

rmetzger0
You can also put the configuration option into the flink-conf.yaml file.

On Tue, Nov 17, 2015 at 12:01 PM, Gwenhael Pasquiers <[hidden email]> wrote:

We tried to add : -yD env.java.opts="-XX:MaxPermSize=256m"

 

But we’ve got to investigate since we have to following error :

 

Improperly specified VM option 'MaxPermSize'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

 

Either is the option is badly supported, or it is incorrectly passed to the VM (maybe the “-XX:” causes some issues in the scripts).

 

We’ll investigate.

 

From: Robert Metzger [mailto:[hidden email]]
Sent: lundi 16 novembre 2015 19:18
To: [hidden email]
Subject: Re: MaxPermSize on yarn

 

Hi Gwen,

 

there is a configuration value called "env.java.opts", that allows you to pass custom JVM args to JM and TM JVMs.

 

I hope that helps.

 

 

 

On Mon, Nov 16, 2015 at 5:30 PM, Gwenhael Pasquiers <[hidden email]> wrote:

Hi,

 

We’re having some OOM permgen exceptions when running on yarn.

 

We’re not yet sure if it is either a consequence or a cause of our crashes, but we’ve been trying to increase that value… And we did not find how to do it.

 

I’ve seen that the yarn-daemon.sh sets a 256m value.

It looks to me that it’s also possible to customize the YarnClient JVM args, but it will only be for the client, not for the TaskManagers.

 

Do you know of a way to do it ?

 

B.R.

 

Gwenhaël PASQUIERS

 


Reply | Threaded
Open this post in threaded view
|

RE: MaxPermSize on yarn

Gwenhael Pasquiers

The option was accepted using the yaml file and it looks likes it solved our issue.

 

Thanks again.

 

From: Robert Metzger [mailto:[hidden email]]
Sent: mardi 17 novembre 2015 12:04
To: [hidden email]
Subject: Re: MaxPermSize on yarn

 

You can also put the configuration option into the flink-conf.yaml file.

 

On Tue, Nov 17, 2015 at 12:01 PM, Gwenhael Pasquiers <[hidden email]> wrote:

We tried to add : -yD env.java.opts="-XX:MaxPermSize=256m"

 

But we’ve got to investigate since we have to following error :

 

Improperly specified VM option 'MaxPermSize'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

 

Either is the option is badly supported, or it is incorrectly passed to the VM (maybe the “-XX:” causes some issues in the scripts).

 

We’ll investigate.

 

From: Robert Metzger [mailto:[hidden email]]
Sent: lundi 16 novembre 2015 19:18
To: [hidden email]
Subject: Re: MaxPermSize on yarn

 

Hi Gwen,

 

there is a configuration value called "env.java.opts", that allows you to pass custom JVM args to JM and TM JVMs.

 

I hope that helps.

 

 

 

On Mon, Nov 16, 2015 at 5:30 PM, Gwenhael Pasquiers <[hidden email]> wrote:

Hi,

 

We’re having some OOM permgen exceptions when running on yarn.

 

We’re not yet sure if it is either a consequence or a cause of our crashes, but we’ve been trying to increase that value… And we did not find how to do it.

 

I’ve seen that the yarn-daemon.sh sets a 256m value.

It looks to me that it’s also possible to customize the YarnClient JVM args, but it will only be for the client, not for the TaskManagers.

 

Do you know of a way to do it ?

 

B.R.

 

Gwenhaël PASQUIERS