Websphere creating dump only on server start up - websphere

Whenever I start the websphere from my IBM Rational Application developer, it is creating dump inside
profiles\AppSrv1
and
C:\Server\profiles\AppSrv1\bin\
and then I have to stop the process under task manager, delete dump files.
Please make a note that I've not logged into the application, only the server start up is creating heap dump
Why is it happening? Any ideas will be helpful for me.

It seems that the automated heap dump is enabled. Check that the checkbox value of Enable automatic heap dump collection under Servers -> Performance -> Runtime in the console.

Related

Error in monitoring WebSphere portal threadpool using check_was Nagios plugin

I have installed WebSphere Portal 8.5 version on CentOS 7 . I am trying to monitor various portal parameters like heap memory , live sessions , threadpools etc . For monitoring , I am using Nagios .For this , I have installed latest version of 'check_was' nagios plugin . I am able to monitor heap memory and live sessions but I am not able to monitor thread pools . Whenever , I am firing the reqd command to check 'threadpool' , I am getting the following error ----
/usr/local/nagios/libexec/check_was-0.4/check_was -s threadpool -w 80 -c 90 -p WebSphere_Portal
ERROR - Failed to get stats object on WebSphere:cell=Cell85,mbeanIdentifier=null,name=server.startup,node=Node85,platform=dynamicproxy,process=WebSphere_Portal,spec=1.0,type=ThreadPool,version=8.5.5.2.
Can anybody help me in this ?
Probably you are missing to enable PMI. Take a look on bellow link:
https://www.ibm.com/support/knowledgecenter/en/SSAW57_9.0.0/com.ibm.websphere.nd.multiplatform.doc/ae/tprf_prfstartadmin.html
How to enable PMI:
Procedure
Open the administrative console.
Click Servers > Server Types > WebSphere application servers > server_name.
Click the Configuration tab.
Click Performance Monitoring Infrastructure (PMI) under Performance.
Select the Enable Performance Monitoring Infrastructure (PMI) check box.
Optionally, select the check box Use sequential counter updates to enable precise statistic update.
Optionally, choose a statistic set that needs to be monitored under Currently Monitored Statistic Set.
Optionally, click on Custom to selectively enable or disable statistics. Choose a component from the tree and enable or disable statistics on the opposite table. Go back to the main PMI configuration page by clicking the Performance Monitoring Infrastructure link.
Click Apply or OK.
Click Save.
Restart the application server. The changes you make will not take effect until you restart the application server.
Note: When Intelligent Management is enabled, the application server does not let you disable PMI counters that the Intelligent Management requires. For information about the list of PMI counters that cannot be disabled when Intelligent Management is enabled, see Enabling PMI data collection.
Regards!

Can I delete .dmp and .phd files of Liberty Profile server?

In the folder <WAS Liberty Profile root>\<profile>\usr\servers\defaultServer there are many files named core.*.dmp and heapdump.*.phd. The size of these files is between 130 MB and 1.3 GB when my deployed app uses 4 MB.
Can I delete these files *.dmp and *.phd?
What are these files for?
Short answer: yes, it's safe to delete them, but you should find out why they're appearing, as it could indicate that your application is not running correctly.
If your dump files were created a long time ago, or you know you were debugging an OutOfMemoryException or have been running server javadump --include=heap,system then go ahead and delete the files. If, however, you keep getting new dump files and don't know why then read on.
The core and heapdump files contain a snapshot of the memory of the application from a specific point in time. Usually you do this to capture the state of your application at the point where something goes wrong so that you can examine it with analysis tools and try to work out what went wrong.
For example, by default the IBM JVM will perform a dump when an OutOfMemoryException is thrown. This allows you to look at the dump file and see what's using up all the memory.
If you have a corresponding javacore file, the fourth line or so should say why the memory dump was made.
e.g. 1TISIGINFO Dump Requested By User (00100000) Through com.ibm.jvm.Dump.javaDumpToFile (caused by running server javadump)
or 1TISIGINFO Dump Event "user" (00004000) received (caused by running kill -3)
If it's a "user" event, then something's asking the JVM to create a dump. If not, and you're still not sure what's causing it, check your jvm.options file for any -Xdump options which can be used to cause the JVM to create a dump in response to certain events. More information on that in the Knowledge Center.

how to generate websphere thread dump without wsadmin on windows server

I have websphere application server v 7 over windows server and I want to generate thread dumps because i have thread hungs, but when I try to get the java cores with wsadmin appears an error, so I want to generate java core files like linux using kill -3 .
Is there something like this in Windows server ?.
Like ObiWanKenobi mentioned, your best bet would probably be through the deployment manager administrative console. From IBM's support site:
Set the com.ibm.websphere.threadmonitor.dump.java property to true:
Application Servers:
From the administrative console, click Servers > Application Servers > server_name.
Under Server Infrastructure, click Administration > Custom Properties.
Click New and add the following property:
Name: com.ibm.websphere.threadmonitor.dump.java
Value: true
Click Apply.
Click OK and save the configuration changes.
Restart the Application Server for the changes to take effect.
Node Agent:
From the administrative console, click System Administration > Node Agents > nodeagent.
Under Additional Properties, click Administration Services
Under Additional Properties, click Custom Properties
Click New and add the following property:
Name: com.ibm.websphere.threadmonitor.dump.java
Value: true
Click Apply.
Click OK and save the configuration changes.
Restart the Node Agent for the changes to take effect.
In short, there is no good answer.
The closest would be to use something like SendSignal. See the Can I send a ctrl-C (SIGINT) to an application on Windows? question for more information. Unfortunately, SendSignal doesn't work reliably on all versions of Windows (see my Send ctrl-break to java process on 64-bit Windows ala sendsignal on 32-bit question).
If you're willing to write some custom code, you could write a Java program that uses the attach API to load a Java agent that calls the Dump API. (I suspect that IBM Support Assistant has this capability built-in, but it's been too long since I tried to be authoritative on this point.)
You can make the JVM to do a thread dump when there are 'hung' threads messages in the SystemOut.log:
Add com.ibm.websphere.threadmonitor.dump.java=true under JVM's Administration > Custom Properties.

Start Websphere Application Server but not loading any application

Is there any way that we can start Websphere Application Server but not loading any applications installed on it?
Environment: websphere 7.0
I didn't find a command line tool method for doing this, but you can edit the deployment.xml files underneath each WAR/EAR file that you want to stop from auto-starting when Websphere starts up.
These deployment.xml files are located typically here:
/opt/IBM/WebSphere/AppServer/profiles/<my profile>/config/cells/<my cell>/applications/<my .ear>/deployments/<my app>/deployment.xml
Within this file is this XML snippet:
<targetMappings xmi:id="DeploymentTargetMapping_1499739616851" enable="true" target="ServerTarget_1499739616851"/>
Change the enable=true to enable=false for every EAR/WAR that you don't want to auto-start. Once done start WAS as you'd normally do so.
References
http://www-01.ibm.com/support/docview.wss?uid=swg21265381
If you mean not starting installed applications, this is controlled through Administrative Console in Enterprise Applications > your_app > Target specific application status. There you can enable or disable auto start.
Target specific application status

How do i take Logs for windows application?

I am working on an application in Windows 7 environment and the application is not stable yet I wanted to see the crash logs , Please help me to get log files.
Reporting Services writes event messages to the Windows application
log. You can use the message information written to the application
log to find out about events that are generated by the report server
applications running on the local system.
Reporting Services provides three event sources:
Report Server (Report Server Windows service)
Report Manager
Scheduling and Delivery Processor
Source
You can use Log4Net to log errors or alternatively just write your errors to a text file.
Here is a link on how to use log4net Link

Resources