How JVM settings between Main Job and Sub Job Works?

Eight Stars

How JVM settings between Main Job and Sub Job Works?

Consider a scenario where my main job is left with default JVM settings -Xms:256, -Xmx-1024 and one of the sub job has its JVM settings like -Xms:1024, -Xmx-4096.

 

Note: I am not using use independent process to run sub job 

 

Now , my question is which settings will be considered while execution of  sub job begins. 


Accepted Solutions
Fifteen Stars TRF
Fifteen Stars

Re: How JVM settings between Main Job and Sub Job Works?

Hi,
If you don't use the "use independent process to run subjob", child job runs in the same JVM as the parent. In this case child inherits parents JVM parameters.
If you use the "use independent process to run subjob", a new JVM is started to run child job with it's own parameters (defined in Advanced settings).

TRF

All Replies
Ten Stars

Re: How JVM settings between Main Job and Sub Job Works?


Your job is packaged in a jar and executed using jvm setting of your main job... sub job ignored.

java has some additional tools which you can use to monitor your jvm. jconsole.exe

Look in your java /bin folder ... install jdk to have even more tools.

Highlighted
Six Stars

Re: How JVM settings between Main Job and Sub Job Works?

JVM is controlled by the parent job always ,So if main job will be having -Xms:256, -Xmx-1024 then the child will also be using same memory.

Eight Stars

Re: How JVM settings between Main Job and Sub Job Works?

@rhall_2_0 :: Can you confirm on this.. 

Fifteen Stars TRF
Fifteen Stars

Re: How JVM settings between Main Job and Sub Job Works?

Hi,
If you don't use the "use independent process to run subjob", child job runs in the same JVM as the parent. In this case child inherits parents JVM parameters.
If you use the "use independent process to run subjob", a new JVM is started to run child job with it's own parameters (defined in Advanced settings).

TRF
One Star

Re: How JVM settings between Main Job and Sub Job Works?

 

how to verify that separate JVM started when we use the "use independent process to run subjob", a new JVM is started to run child job with it's own parameters (defined in Advanced settings). 

Anyone can help me with this.

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog