未捕获的异常java.lang.OutOfMemoryError:&“无法创建新的本机线程"在非GUI模式下运行jmeter时发生错误 [英] Uncaught Exception java.lang.OutOfMemoryError: "unable to create new native thread" error occurring while running jmeter in non gui mode

查看:60
本文介绍了未捕获的异常java.lang.OutOfMemoryError:&“无法创建新的本机线程"在非GUI模式下运行jmeter时发生错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的情况,

第1步:我已将线程组设置为 1000:threads&500:秒
第二步:配置堆空间: HEAP = -Xms1024m -Xmx1024m
第3步:现在,在非GUI模式下运行jmeter.在这种情况下,我的系统中出现未捕获的异常 java.lang.OutOfMemoryError :无法创建新的本机线程"错误.

Step1: I have set my thread group for 1000:threads & 500:seconds
Step2:Configure heep space : HEAP=-Xms1024m -Xmx1024m
Step3:Now, running jmeter for non gui mode. In this scenario,"Uncaught Exception java.lang.OutOfMemoryError: unable to create new native thread" error occuring in my system.

我的系统配置

处理器:英特尔®奔腾(R)CPU G2010 @ 2.80GHz×2
操作系统类型:32位
光盘:252.6GB
内存:3.4 GiB

Processor:Intel® Pentium(R) CPU G2010 @ 2.80GHz × 2
OS Type:32 bit
Disc:252.6GB
Memory:3.4 GiB

请为我提供针对这种情况的解决方案.

kindly give me a solution for this scenario.

谢谢,瓦伊拉穆图.

推荐答案

您的问题是由于使用32位操作系统造成的,在这种模式下,您在分配为堆方面的能力都受到限制(取决于操作系统,您不会可以超过1.6到2.1 g)并创建本机线程.

Your issue is due to using a 32 bit OS, in this mode you are limited both in what you can allocate as Heap (depending on OS you will not be able to exceed 1.6 to 2.1 g) and native threads creation.

我建议切换到64位操作系统+ 64位Jdk.

I'd suggest switching to 64 Bits OS + 64 bits Jdk.

但是,如果您没有其他选择,请尝试在JVM_ARGS的jmeter.sh中进行设置:

But if you don't have any other option try setting in jmeter.sh in JVM_ARGS:

-Xss128k

-Xss128k

或者如果太低:

-Xss256k

-Xss256k

这篇关于未捕获的异常java.lang.OutOfMemoryError:&“无法创建新的本机线程"在非GUI模式下运行jmeter时发生错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆