Friday, September 26, 2014

java.lang.outofmemoryerror java heap space JMeter




I am encountering OutOfMemoryError in JMeter after running for a period of time.


This can be fixed by changing the parameter in Jmeter.bat or jmeter.sh.








The heap value needs to be increased. I tried increasing it too 2GB but it started giving me another error.

Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
errorlevel=1
Press any key to continue . . .


So i kept it to 1 GB for smooth operation and even i removed unwanted listeners from it.
Listeners consumes lot of memory. So we need to be cognitive of them.






Friday, September 19, 2014

How to Load Test a Stand Alone Java Class


Coming Soon!

Tuesday, September 16, 2014

com.ibm.ws.exception.RuntimeError: org.omg.CORBA.INTERNAL: CREATE_LISTENER_FAILED_4 vmcid: 0x49421000



This is the exception i was receiving when me and my friend was trying to start two instance of Websphere . We made sure to create different profile for server1 and server2.

Both were running in different port. But still we were encountering this error.


After searching i figure out this link

A BindException occurs for WebSphere Process Server (WPS) after the node agent starts up due to a port conflict.
http://www-01.ibm.com/support/docview.wss?uid=swg21316345

Resolving the problem


You need to manually fix the problem because the deployment manager cannot synchronize corrected settings on the node if it is not started. To correct the problem, complete the following actions:

Open the node agent configuration file to edit the port settings:

<profileName>\config\cells\<cellName>\
 nodes\<nodeName>\serverindex.xml

Identify the conflicting port number and entry in the server configuration file and manually apply a new unique value for the port number:

<specialEndpoints endPointName="ORB_LISTENER_ADDRESS">
 <endPoint xmi:id="id" host="hostname" port="port"/>
</specialEndpoints>

Login to the administrative console of the deployment manager and set the new value on the master configuration for the node agent:
Click System administration > Node agents > node_agent_name .

On the Configuration tab, click Ports > Details > port_name > Port.

Restart the node agent and check the log file to verify that the problem is fixed:

<profileName>/bin/startNode.(bat|sh)

Wednesday, September 3, 2014

There are no resources that can be added or removed from the server


Problem Statement:-

Could not find a valid parent module to add to the server.

I have installed Websphere server and integrated it with Eclipse Juno.
I created the Websphere Application  Server Profile and add that in server tab of Eclipse.

When i right click and try to add my project in the server, so i can deploy it. I get the following exception
"There are no resources that can be added or removed from the server"


Solution:-

I have read the solution from the below Stackoverflow. It is a very helpful link.

http://stackoverflow.com/questions/13828005/what-needs-to-be-done-to-add-a-project-to-a-websphere-server-in-eclipse-juno