Cannot allocate memory error showing while run job in studio

Seven Stars RAJ
Seven Stars

Cannot allocate memory error showing while run job in studio

Hi Folks,

 

When I ran studio job. it is showing Cannot allocate memory error. how to slow this issues. kindly share your information.

Am using jvm argument  also. This is my JVM  -xms2048M -xmx13024M.

Screenshot (281)_LI.jpg

Thanks
RAJ
Six Stars

Re: Cannot allocate memory error showing while run job in studio

This might be a silly question, but how much memory does the machine you're running the job on have? And how much of that memory is free? If you're machine is overcommitted you might make things worse by adding an Xms value.

 

Also, the Xms and Xmx parameters need to be capitalised.

Could you share the log file that's created by the JRE as mentioned in the console?

Four Stars

Re: Cannot allocate memory error showing while run job in studio

I suspect your machine have 13GB ram..i.e 13024M. This is just because your machine doesn't have enough space to allocate. So reduce the JVM as below:

Xmx:

-Xmx13024M to -Xmx2048M  or -Xmx4096M (Based on your machine RAM)

Xms:

-Xms2048M to -Xms256M

 

Even if you are running this job on server -Xmx4096M is more than enough.

Regards,

Ajinkya

Seven Stars RAJ
Seven Stars

Re: Cannot allocate memory error showing while run job in studio

Hi ,

I tried -xms256M -xmx2048M this JVM also . I have 16 Gb ram . I tried all the possibility with JVM and with out JVM. It's not working. Still am facing same issue
Thanks
RAJ
Four Stars

Re: Cannot allocate memory error showing while run job in studio

Then please check available memory. Smiley Happy

Seven Stars RAJ
Seven Stars

Re: Cannot allocate memory error showing while run job in studio

How to check availability of memory.
Thanks
RAJ
Four Stars

Re: Cannot allocate memory error showing while run job in studio

You can simply check from task manager>>performance (in windows).

 

Are you on some small AWS instance?

Regards,

Ajinkya

Six Stars

Re: Cannot allocate memory error showing while run job in studio

Or in linux : free -h