java.lang.​OutOfMemor​yError: Unable to create new native thread

1 view (last 30 days)
Dear Matlab experts, I am using a Matlab script to run my functions in parallel. For that, I am using parcluster. When I type in the shell lscpu, I get the following:
Arquitectura: x86_64
modo(s) de operación de las CPUs:32-bit, 64-bit
Orden de bytes: Little Endian
CPU(s): 72
On-line CPU(s) list: 0-71
Hilo(s) de procesamiento por núcleo:2
Núcleo(s) por «socket»:18
Socket(s): 2
Modo(s) NUMA: 2
ID de fabricante: GenuineIntel
Familia de CPU: 6
Modelo: 63
Model name: Intel(R) Xeon(R) CPU E5-2699 v3 @ 2.30GHz
Revisión: 2
CPU MHz: 1206.994
CPU max MHz: 3600,0000
CPU min MHz: 1200,0000
BogoMIPS: 4589.28
Virtualización: VT-x
Caché L1d: 32K
Caché L1i: 32K
Caché L2: 256K
Caché L3: 46080K
NUMA node0 CPU(s): 0-17,36-53
NUMA node1 CPU(s): 18-35,54-71
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm epb tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid cqm xsaveopt cqm_llc cqm_occup_llc dtherm ida arat pln pts
In the Cluster Profile Manager I set NumWorkers to 144 and NumThreads to 18. However I get an out-of-memory error at submit function. Error indicates 'Unable to create new native thread'. How should I set the Cluster Profile Manager parameters in order to optimize my resources and execution time? Thanks very much in advance.
M del Mar

Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!