1
resposta

Aula 05 - Simulando uma aplicação com muitas threads

Olá, quando tento executar as threads por volta da "Tarefa numero 32546 inicializada" dá esses erros

"4,253s][warning][os,thread] Attempt to deallocate stack guard pages failed (0x00007f8b3c400000-0x00007f8b3c404000). [4,253s][warning][os,thread] Attempt to deallocate stack guard pages failed (0x00007f8b3fa00000-0x00007f8b3fa04000). [4,253s][warning][os,thread] Attempt to deallocate stack guard pages failed (0x00007f87f0100000-0x00007f87f0104000). [4,254s][warning][os,thread] Attempt to deallocate stack guard pages failed (0x00007f84bc200000-0x00007f84bc204000). [4,254s][warning][os,thread] Attempt to deallocate stack guard pages failed (0x00007f8935400000-0x00007f8935404000). [4,254s][warning][os,thread] Attempt to deallocate stack guard pages failed (0x00007f8926700000-0x00007f8926704000). [4,254s][warning][os,thread] Attempt to deallocate stack guard pages failed (0x00007f8b3d800000-0x00007f8b3d804000). [4,254s][warning][os,thread] Attempt to deallocate stack guard pages failed (0x00007f8a62621000-0x00007f8a62625000). [4,254s][warning][os,thread] Attempt to deallocate stack guard pages failed (0x00007f8bb8f00000-0x00007f8bb8f04000). [4,254s][warning][os,thread] Attempt to deallocate stack guard pages failed (0x00007f8a5b621000-0x00007f8a5b625000). [4,254s][warning][os,thread] Attempt to deallocate stack guard pages failed (0x00007f8950900000-0x00007f8950904000). [4,254s][warning][os,thread] Attempt to deallocate stack guard pages failed (0x00007f8a26e21000-0x00007f8a26e25000). [4,254s][warning][os,thread] Attempt to deallocate stack guard pages failed (0x00007f8778f00000-0x00007f8778f04000). [4,254s][warning][os,thread] Attempt to deallocate stack guard pages failed (0x00007f8521800000-0x00007f8521804000). [4,254s][warning][os,thread] Attempt to deallocate stack guard pages failed (0x00007f84b1b00000-0x00007f84b1b04000). [4,254s][warning][os,thread] Attempt to deallocate stack guard pages failed (0x00007f85c4800000-0x00007f85c4804000). [4,254s][warning][os,thread] Attempt to deallocate stack guard pages failed (0x00007f8581100000-0x00007f8581104000). [4,254s][warning][os,thread] Attempt to deallocate stack guard pages failed (0x00007f8455f00000-0x00007f8455f04000). [4,259s][warning][os,thread] Attempt to deallocate stack guard pages failed (0x00007f848c200000-0x00007f848c204000)."

Tenho 32 GB de memória, já configurei o intellij no vmopions dessa forma: " -Xms4096m -Xmx16384m "

Ativei o "Show Memory Indicator" e a memória durante a execução das Threads não passa de 3GB.

1 resposta

Olá, Fernando! Tudo bem?

Os avisos que você está recebendo indicam falhas ao tentar desalocar as "guard pages", usadas para proteger a memória que as threads utilizam.

Uma possível causa para esse problema pode ser como você configurou o Intellij no vmopions, já que você percebeu que a memória máxima utilizada é 3GB. Logo, peço que compartilhe comigo os passos que você fez na configuração, pode ser que você acabou errando ou esquecendo algum processo.

Fico no aguardo e à disposição