nGrinder 3.2 Agent Error

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

nGrinder 3.2 Agent Error

balajilinks
Hi,

I deployed nGrinder 3.2 controller and Agent in my Windows 7 PC.  When I execute any tests they are terminating with SCRIPT_ERROR message.  I executed the same in one of the Unix virtual machine and I faced the problem again. When I run the 3.1.2 Agent against 3.2 controller, the script was working fine.

When I compare the Agent 3.1.2 and Agent 3.2, I saw additional jars included for Groovy support.

I attached the Agent logs below.  

2013-05-30 17:11:07,417 INFO  agent controller: agent is started. waiting for ag
ent controller signal
2013-05-30 17:11:07,422 INFO  net.grinder.AgentDaemon: The Grinder 3.9.1
2013-05-30 17:11:07,445 INFO  net.grinder.AgentDaemon: connected to console at /
10.205.7.181:12000
2013-05-30 17:11:07,445 INFO  net.grinder.AgentDaemon: waiting for console signa
l
2013-05-30 17:11:08,301 INFO  net.grinder.AgentDaemon: Clearing file store
2013-05-30 17:11:08,308 INFO  net.grinder.AgentDaemon: Updating file store: "scr
ipt.py" (1704 bytes)
2013-05-30 17:11:09,338 INFO  net.grinder.AgentDaemon: received a start message
2013-05-30 17:11:09,368 INFO  net.grinder.AgentDaemon: grinder properties {grind
er.security=false, grinder.ignoreSampleCount=0, grinder.numberOfOldLogs=1, grind
er.script=script.py, grinder.consoleHost=10.205.7.181, grinder.runs=0, grinder.l
ogProcessStreams=true, grinder.jvm=java, grinder.sleepTimeFactor=1, grinder.repo
rtToConsole.interval=500, grinder.dcrinstrumentation=true, grinder.reportTimesTo
Console=true, grinder.processes=1, grinder.threads=1, grinder.useConsole=true, g
rinder.test.id=test_130, grinder.debug.singleprocess=false, grinder.consolePort=
12000, grinder.jvm.classpath=C:\Users\N416877\Downloads\ngrinder-core-3.2-agent-
package\ngrinder-core-3.2\.\lib\ngrinder-dns-3.2.jar;C:\Users\N416877\Downloads\
ngrinder-core-3.2-agent-package\ngrinder-core-3.2\.\lib\grinder-3.9.1-patch.jar;
C:\Users\N416877\.ngrinder_agent\file-store\admin\current\, grinder.logDirectory
=C:\Users\N416877\.ngrinder_agent\log\test_130, grinder.duration=60000, ngrinder
.etc.hosts=127.0.0.1, grinder.sleepTimeVariation=0.2, grinder.processIncrement=0
, grinder.user=admin}
2013-05-30 17:11:09,369 INFO  net.grinder.AgentDaemon: jvm arguments  -Djna.libr
ary.path=C:\Users\N416877\.ngrinder_agent\file-store\admin\current\lib  -Dpython
.path=C:\Users\N416877\.ngrinder_agent\file-store\admin\current\lib  -Dpython.ca
chedir=C:\Users\N416877\AppData\Local\Temp\jython  -Dngrinder.etc.hosts=Z0024-E8
F9-BD89:127.0.0.1,localhost:127.0.0.1,127.0.0.1:127.0.0.1 -Dsun.net.spi.nameserv
ice.provider.1=dns,LocalManagedDns  -server  -Xms-26m -Xmx-26m  -XX:PermSize=-10
m  -XX:MaxPermSize=-10m
2013-05-30 17:11:09,388 INFO  net.grinder.AgentDaemon: Worker process command li
ne: java '-javaagent:..\..\..\..\Downloads\ngrinder-core-3.2-agent-package\ngrin
der-core-3.2\lib\grinder-dcr-agent-3.9.1.jar' '-Djna.library.path=C:\Users\N4168
77\.ngrinder_agent\file-store\admin\current\lib' '-Dpython.path=C:\Users\N416877
\.ngrinder_agent\file-store\admin\current\lib' '-Dpython.cachedir=C:\Users\N4168
77\AppData\Local\Temp\jython' '-Dngrinder.etc.hosts=Z0024-E8F9-BD89:127.0.0.1,lo
calhost:127.0.0.1,127.0.0.1:127.0.0.1' '-Dsun.net.spi.nameservice.provider.1=dns
,LocalManagedDns' -server '-Xms-26m' '-Xmx-26m' '-XX:PermSize=-10m' '-XX:MaxPerm
Size=-10m' -classpath '..\..\..\..\Downloads\ngrinder-core-3.2-agent-package\ngr
inder-core-3.2\lib\ngrinder-dns-3.2.jar;..\..\..\..\Downloads\ngrinder-core-3.2-
agent-package\ngrinder-core-3.2\lib\grinder-3.9.1-patch.jar;.;..\..\..\..\Downlo
ads\ngrinder-core-3.2-agent-package\ngrinder-core-3.2\ngrinder-core-3.2.jar;..\.
.\..\..\Downloads\ngrinder-core-3.2-agent-package\ngrinder-core-3.2\lib\grinder-
3.9.1-patch.jar;..\..\..\..\Downloads\ngrinder-core-3.2-agent-package\ngrinder-c
ore-3.2\lib\antlr-2.7.7.jar;..\..\..\..\Downloads\ngrinder-core-3.2-agent-packag
e\ngrinder-core-3.2\lib\asm-3.2.jar;..\..\..\..\Downloads\ngrinder-core-3.2-agen
t-package\ngrinder-core-3.2\lib\commons-collections-3.2.1.jar;..\..\..\..\Downlo
ads\ngrinder-core-3.2-agent-package\ngrinder-core-3.2\lib\commons-compress-1.4.1
.jar;..\..\..\..\Downloads\ngrinder-core-3.2-agent-package\ngrinder-core-3.2\lib
\commons-io-2.0.1.jar;..\..\..\..\Downloads\ngrinder-core-3.2-agent-package\ngri
nder-core-3.2\lib\commons-lang-2.6.jar;..\..\..\..\Downloads\ngrinder-core-3.2-a
gent-package\ngrinder-core-3.2\lib\dnsjava-2.1.1.jar;..\..\..\..\Downloads\ngrin
der-core-3.2-agent-package\ngrinder-core-3.2\lib\dom4j-1.6.1.jar;..\..\..\..\Dow
nloads\ngrinder-core-3.2-agent-package\ngrinder-core-3.2\lib\grinder-3.9.1.jar;.
.\..\..\..\Downloads\ngrinder-core-3.2-agent-package\ngrinder-core-3.2\lib\grind
er-core-3.9.1.jar;..\..\..\..\Downloads\ngrinder-core-3.2-agent-package\ngrinder
-core-3.2\lib\grinder-dcr-agent-3.9.1.jar;..\..\..\..\Downloads\ngrinder-core-3.
2-agent-package\ngrinder-core-3.2\lib\grinder-http-3.9.1.jar;..\..\..\..\Downloa
ds\ngrinder-core-3.2-agent-package\ngrinder-core-3.2\lib\grinder-httpclient-3.9.
1.jar;..\..\..\..\Downloads\ngrinder-core-3.2-agent-package\ngrinder-core-3.2\li
b\groovy-all-2.0.6.jar;..\..\..\..\Downloads\ngrinder-core-3.2-agent-package\ngr
inder-core-3.2\lib\gson-2.2.jar;..\..\..\..\Downloads\ngrinder-core-3.2-agent-pa
ckage\ngrinder-core-3.2\lib\hamcrest-all-1.1.jar;..\..\..\..\Downloads\ngrinder-
core-3.2-agent-package\ngrinder-core-3.2\lib\hibernate-commons-annotations-4.0.1
.Final.jar;..\..\..\..\Downloads\ngrinder-core-3.2-agent-package\ngrinder-core-3
.2\lib\hibernate-core-4.0.1.Final.jar;..\..\..\..\Downloads\ngrinder-core-3.2-ag
ent-package\ngrinder-core-3.2\lib\hibernate-jpa-2.0-api-1.0.1.Final.jar;..\..\..
\..\Downloads\ngrinder-core-3.2-agent-package\ngrinder-core-3.2\lib\javassist-3.
15.0-GA.jar;..\..\..\..\Downloads\ngrinder-core-3.2-agent-package\ngrinder-core-
3.2\lib\jboss-transaction-api_1.1_spec-1.0.0.Final.jar;..\..\..\..\Downloads\ngr
inder-core-3.2-agent-package\ngrinder-core-3.2\lib\jcl-over-slf4j-1.6.4.jar;..\.
.\..\..\Downloads\ngrinder-core-3.2-agent-package\ngrinder-core-3.2\lib\jna-3.4.
0.jar;..\..\..\..\Downloads\ngrinder-core-3.2-agent-package\ngrinder-core-3.2\li
b\json-20090211.jar;..\..\..\..\Downloads\ngrinder-core-3.2-agent-package\ngrind
er-core-3.2\lib\junit-dep-4.8.2.jar;..\..\..\..\Downloads\ngrinder-core-3.2-agen
t-package\ngrinder-core-3.2\lib\jython-standalone-2.5.3.jar;..\..\..\..\Download
s\ngrinder-core-3.2-agent-package\ngrinder-core-3.2\lib\log4j-1.2.15.jar;..\..\.
.\..\Downloads\ngrinder-core-3.2-agent-package\ngrinder-core-3.2\lib\logback-cla
ssic-1.0.0.jar;..\..\..\..\Downloads\ngrinder-core-3.2-agent-package\ngrinder-co
re-3.2\lib\logback-core-1.0.0.jar;..\..\..\..\Downloads\ngrinder-core-3.2-agent-
package\ngrinder-core-3.2\lib\ngrinder-dns-3.2.jar;..\..\..\..\Downloads\ngrinde
r-core-3.2-agent-package\ngrinder-core-3.2\lib\ngrinder-groovy-3.2.jar;..\..\..\
..\Downloads\ngrinder-core-3.2-agent-package\ngrinder-core-3.2\lib\picocontainer
-2.13.6.jar;..\..\..\..\Downloads\ngrinder-core-3.2-agent-package\ngrinder-core-
3.2\lib\sigar-1.6.4.jar;..\..\..\..\Downloads\ngrinder-core-3.2-agent-package\ng
rinder-core-3.2\lib\slf4j-api-1.6.4.jar;..\..\..\..\Downloads\ngrinder-core-3.2-
agent-package\ngrinder-core-3.2\lib\xml-apis-1.0.b2.jar;..\..\..\..\Downloads\ng
rinder-core-3.2-agent-package\ngrinder-core-3.2\lib\xz-1.0.jar' net.grinder.engi
ne.process.WorkerProcessEntryPoint
2013-05-30 17:11:09,424 INFO  net.grinder.AgentDaemon: worker Z0024-E8F9-BD89-0
started
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Invalid initial heap size: -Xms-26m
2013-05-30 17:11:09,583 INFO  net.grinder.AgentDaemon: all workers are finished
2013-05-30 17:11:09,586 INFO  net.grinder.AgentDaemon: communication shut down
2013-05-30 17:11:09,590 INFO  net.grinder.AgentDaemon: finished
2013-05-30 17:11:09,591 INFO  agent controller: send log for test_130


Reply | Threaded
Open this post in threaded view
|

RE: nGrinder 3.2 Agent Error

junoyoon
Administrator

How much memory is free in agent before running the test?

In your log message -Xms-26m shows that the available memory is calculated as a negative value. 

Previously nGrinder used "actual free memory" which includes the memory occupied for some buffer but be able to released  in case of lack of memory.

However we found out that this can cause OS crash much.. so nGrinder 3.2 are using "free memory" to calculate the java memory.

You case shows that the free memory is less than 300MB(this part is reserved for OS safety) as well.

Could you run task manger and see how much free memory is?

 

-----Original Message-----
From: "balajilinks [via ngrinder]"<[hidden email]>
To: "junoyoon"<[hidden email]>;
Cc:
Sent: 2013-05-31 (금) 01:16:36
Subject: nGrinder 3.2 Agent Error

Hi,

I deployed nGrinder 3.2 controller and Agent in my Windows 7 PC.  When I execute any tests they are terminating with SCRIPT_ERROR message.  I executed the same in one of the Unix virtual machine and I faced the problem again. When I run the 3.1.2 Agent against 3.2 controller, the script was working fine.

When I compare the Agent 3.1.2 and Agent 3.2, I saw additional jars included for Groovy support.

I attached the Agent logs below.  

2013-05-30 17:11:07,417 INFO  agent controller: agent is started. waiting for ag
ent controller signal
2013-05-30 17:11:07,422 INFO  net.grinder.AgentDaemon: The Grinder 3.9.1
2013-05-30 17:11:07,445 INFO  net.grinder.AgentDaemon: connected to console at /
10.205.7.181:12000
2013-05-30 17:11:07,445 INFO  net.grinder.AgentDaemon: waiting for console signa
l
2013-05-30 17:11:08,301 INFO  net.grinder.AgentDaemon: Clearing file store
2013-05-30 17:11:08,308 INFO  net.grinder.AgentDaemon: Updating file store: "scr
ipt.py" (1704 bytes)
2013-05-30 17:11:09,338 INFO  net.grinder.AgentDaemon: received a start message
2013-05-30 17:11:09,368 INFO  net.grinder.AgentDaemon: grinder properties {grind
er.security=false, grinder.ignoreSampleCount=0, grinder.numberOfOldLogs=1, grind
er.script=script.py, grinder.consoleHost=10.205.7.181, grinder.runs=0, grinder.l
ogProcessStreams=true, grinder.jvm=java, grinder.sleepTimeFactor=1, grinder.repo
rtToConsole.interval=500, grinder.dcrinstrumentation=true, grinder.reportTimesTo
Console=true, grinder.processes=1, grinder.threads=1, grinder.useConsole=true, g
rinder.test.id=test_130, grinder.debug.singleprocess=false, grinder.consolePort=
12000, grinder.jvm.classpath=C:\Users\N416877\Downloads\ngrinder-core-3.2-agent-
package\ngrinder-core-3.2\.\lib\ngrinder-dns-3.2.jar;C:\Users\N416877\Downloads\
ngrinder-core-3.2-agent-package\ngrinder-core-3.2\.\lib\grinder-3.9.1-patch.jar;
C:\Users\N416877\.ngrinder_agent\file-store\admin\current\, grinder.logDirectory
=C:\Users\N416877\.ngrinder_agent\log\test_130, grinder.duration=60000, ngrinder
.etc.hosts=127.0.0.1, grinder.sleepTimeVariation=0.2, grinder.processIncrement=0
, grinder.user=admin}
2013-05-30 17:11:09,369 INFO  net.grinder.AgentDaemon: jvm arguments  -Djna.libr
ary.path=C:\Users\N416877\.ngrinder_agent\file-store\admin\current\lib  -Dpython
.path=C:\Users\N416877\.ngrinder_agent\file-store\admin\current\lib  -Dpython.ca
chedir=C:\Users\N416877\AppData\Local\Temp\jython  -Dngrinder.etc.hosts=Z0024-E8
F9-BD89:127.0.0.1,localhost:127.0.0.1,127.0.0.1:127.0.0.1 -Dsun.net.spi.nameserv
ice.provider.1=dns,LocalManagedDns  -server  -Xms-26m -Xmx-26m  -XX:PermSize=-10
m  -XX:MaxPermSize=-10m
2013-05-30 17:11:09,388 INFO  net.grinder.AgentDaemon: Worker process command li
ne: java '-javaagent:..\..\..\..\Downloads\ngrinder-core-3.2-agent-package\ngrin
der-core-3.2\lib\grinder-dcr-agent-3.9.1.jar' '-Djna.library.path=C:\Users\N4168
77\.ngrinder_agent\file-store\admin\current\lib' '-Dpython.path=C:\Users\N416877
\.ngrinder_agent\file-store\admin\current\lib' '-Dpython.cachedir=C:\Users\N4168
77\AppData\Local\Temp\jython' '-Dngrinder.etc.hosts=Z0024-E8F9-BD89:127.0.0.1,lo
calhost:127.0.0.1,127.0.0.1:127.0.0.1' '-Dsun.net.spi.nameservice.provider.1=dns
,LocalManagedDns' -server '-Xms-26m' '-Xmx-26m' '-XX:PermSize=-10m' '-XX:MaxPerm
Size=-10m' -classpath '..\..\..\..\Downloads\ngrinder-core-3.2-agent-package\ngr
inder-core-3.2\lib\ngrinder-dns-3.2.jar;..\..\..\..\Downloads\ngrinder-core-3.2-
agent-package\ngrinder-core-3.2\lib\grinder-3.9.1-patch.jar;.;..\..\..\..\Downlo
ads\ngrinder-core-3.2-agent-package\ngrinder-core-3.2\ngrinder-core-3.2.jar;..\.
.\..\..\Downloads\ngrinder-core-3.2-agent-package\ngrinder-core-3.2\lib\grinder-
3.9.1-patch.jar;..\..\..\..\Downloads\ngrinder-core-3.2-agent-package\ngrinder-c
ore-3.2\lib\antlr-2.7.7.jar;..\..\..\..\Downloads\ngrinder-core-3.2-agent-packag
e\ngrinder-core-3.2\lib\asm-3.2.jar;..\..\..\..\Downloads\ngrinder-core-3.2-agen
t-package\ngrinder-core-3.2\lib\commons-collections-3.2.1.jar;..\..\..\..\Downlo
ads\ngrinder-core-3.2-agent-package\ngrinder-core-3.2\lib\commons-compress-1.4.1
.jar;..\..\..\..\Downloads\ngrinder-core-3.2-agent-package\ngrinder-core-3.2\lib
\commons-io-2.0.1.jar;..\..\..\..\Downloads\ngrinder-core-3.2-agent-package\ngri
nder-core-3.2\lib\commons-lang-2.6.jar;..\..\..\..\Downloads\ngrinder-core-3.2-a
gent-package\ngrinder-core-3.2\lib\dnsjava-2.1.1.jar;..\..\..\..\Downloads\ngrin
der-core-3.2-agent-package\ngrinder-core-3.2\lib\dom4j-1.6.1.jar;..\..\..\..\Dow
nloads\ngrinder-core-3.2-agent-package\ngrinder-core-3.2\lib\grinder-3.9.1.jar;.
.\..\..\..\Downloads\ngrinder-core-3.2-agent-package\ngrinder-core-3.2\lib\grind
er-core-3.9.1.jar;..\..\..\..\Downloads\ngrinder-core-3.2-agent-package\ngrinder
-core-3.2\lib\grinder-dcr-agent-3.9.1.jar;..\..\..\..\Downloads\ngrinder-core-3.
2-agent-package\ngrinder-core-3.2\lib\grinder-http-3.9.1.jar;..\..\..\..\Downloa
ds\ngrinder-core-3.2-agent-package\ngrinder-core-3.2\lib\grinder-httpclient-3.9.
1.jar;..\..\..\..\Downloads\ngrinder-core-3.2-agent-package\ngrinder-core-3.2\li
b\groovy-all-2.0.6.jar;..\..\..\..\Downloads\ngrinder-core-3.2-agent-package\ngr
inder-core-3.2\lib\gson-2.2.jar;..\..\..\..\Downloads\ngrinder-core-3.2-agent-pa
ckage\ngrinder-core-3.2\lib\hamcrest-all-1.1.jar;..\..\..\..\Downloads\ngrinder-
core-3.2-agent-package\ngrinder-core-3.2\lib\hibernate-commons-annotations-4.0.1
.Final.jar;..\..\..\..\Downloads\ngrinder-core-3.2-agent-package\ngrinder-core-3
.2\lib\hibernate-core-4.0.1.Final.jar;..\..\..\..\Downloads\ngrinder-core-3.2-ag
ent-package\ngrinder-core-3.2\lib\hibernate-jpa-2.0-api-1.0.1.Final.jar;..\..\..
\..\Downloads\ngrinder-core-3.2-agent-package\ngrinder-core-3.2\lib\javassist-3.
15.0-GA.jar;..\..\..\..\Downloads\ngrinder-core-3.2-agent-package\ngrinder-core-
3.2\lib\jboss-transaction-api_1.1_spec-1.0.0.Final.jar;..\..\..\..\Downloads\ngr
inder-core-3.2-agent-package\ngrinder-core-3.2\lib\jcl-over-slf4j-1.6.4.jar;..\.
.\..\..\Downloads\ngrinder-core-3.2-agent-package\ngrinder-core-3.2\lib\jna-3.4.
0.jar;..\..\..\..\Downloads\ngrinder-core-3.2-agent-package\ngrinder-core-3.2\li
b\json-20090211.jar;..\..\..\..\Downloads\ngrinder-core-3.2-agent-package\ngrind
er-core-3.2\lib\junit-dep-4.8.2.jar;..\..\..\..\Downloads\ngrinder-core-3.2-agen
t-package\ngrinder-core-3.2\lib\jython-standalone-2.5.3.jar;..\..\..\..\Download
s\ngrinder-core-3.2-agent-package\ngrinder-core-3.2\lib\log4j-1.2.15.jar;..\..\.
.\..\Downloads\ngrinder-core-3.2-agent-package\ngrinder-core-3.2\lib\logback-cla
ssic-1.0.0.jar;..\..\..\..\Downloads\ngrinder-core-3.2-agent-package\ngrinder-co
re-3.2\lib\logback-core-1.0.0.jar;..\..\..\..\Downloads\ngrinder-core-3.2-agent-
package\ngrinder-core-3.2\lib\ngrinder-dns-3.2.jar;..\..\..\..\Downloads\ngrinde
r-core-3.2-agent-package\ngrinder-core-3.2\lib\ngrinder-groovy-3.2.jar;..\..\..\
..\Downloads\ngrinder-core-3.2-agent-package\ngrinder-core-3.2\lib\picocontainer
-2.13.6.jar;..\..\..\..\Downloads\ngrinder-core-3.2-agent-package\ngrinder-core-
3.2\lib\sigar-1.6.4.jar;..\..\..\..\Downloads\ngrinder-core-3.2-agent-package\ng
rinder-core-3.2\lib\slf4j-api-1.6.4.jar;..\..\..\..\Downloads\ngrinder-core-3.2-
agent-package\ngrinder-core-3.2\lib\xml-apis-1.0.b2.jar;..\..\..\..\Downloads\ng
rinder-core-3.2-agent-package\ngrinder-core-3.2\lib\xz-1.0.jar' net.grinder.engi
ne.process.WorkerProcessEntryPoint
2013-05-30 17:11:09,424 INFO  net.grinder.AgentDaemon: worker Z0024-E8F9-BD89-0
started
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Invalid initial heap size: -Xms-26m
2013-05-30 17:11:09,583 INFO  net.grinder.AgentDaemon: all workers are finished
2013-05-30 17:11:09,586 INFO  net.grinder.AgentDaemon: communication shut down
2013-05-30 17:11:09,590 INFO  net.grinder.AgentDaemon: finished
2013-05-30 17:11:09,591 INFO  agent controller: send log for test_130





If you reply to this email, your message will be added to the discussion below:
http://ngrinder.642.n7.nabble.com/nGrinder-3-2-Agent-Error-tp611.html
To start a new topic under ngrinder-user-en, email [hidden email]
To unsubscribe from ngrinder-user-en, click here.
NAML
Reply | Threaded
Open this post in threaded view
|

RE: nGrinder 3.2 Agent Error

balajilinks
Thanks for the explanation Junoyoon..  

I was running controller and agent in same machine. On top of that I opened Browser (Multiple tabs) and Mail applications..  My machine RAM Size 4GB RAM (Core 2 Duo 2.48 GHz).  I closed all the other apps and I executed only controller and agent in my machine. This time I am able to run the tests with 3.2 Agent..
When I run more applications in background, due to lack of memory the agent is failing to execute the tests. Hereafter I will ensure my machine has enough memory to run the tests.

Thanks again.
Reply | Threaded
Open this post in threaded view
|

RE: nGrinder 3.2 Agent Error

junoyoon
Administrator

Actually I should admit it's a nGrinder 3.2 bug... If there are not much memory, nGrinder 3.2 should log this  for a user to know the problem.

 

Thanks, I'll fix this.

 

Regards.