Weblogic server startup profiling tools - weblogic

What would be the best tool or approach if I want to profile my weblogic startup and tune start-up timing.
Can it be done by visual vm or jprofiler or yourkit? What would be the best?

If you use JProfiler, use the integration wizard for Weblogic to configure profiling by selecting Session->Integration Wizards->New Server Integration from the main menu.
On the "Startup mode" step, select the "Wait for a connection from the JProfiler GUI" option.
When you start the session, the "Session Startup" dialog is shown. Select an initial recording profile with the recordings that you are interested in.

Related

How to use VB.NET windows service to check if application is running and Close or Kill the application

I have a VB.NET windows service that I created to start another VB.NET application on a virtual machine reboot.
How can I use the VB.NET windows service to check if the application is running and stop or restart the application?
See CheckApp - by me I've coded this Windows service application to check every 5000ms (5 seconds) if a specified process running. You can modify the code with your own relevant processes (e.g. starting that process again if stopped.)
You can install the service using InstallUtil from Tools > Command Line > Developer Command Prompt in order to deploy the service.
Make sure you have logged on as Administrator on Visual Studio.
As soon as the service starts, the timer Refresher starts which does your required work.
Go to Services and find App Checker after installing it, then finally enable it.
Hope it will help you.

Open app as gui via powershell for a specific user

I have an app that needs to run as a GUI, I'm trying to automate it's launch at startup without the need to remote desktop to the windows server 2008 R2 and manually start it. I currently use a powershell script at startup to perform multiple tasks but have not found a way to launch this gui app in the foreground for the user. So for now I still need to remote in and manually kill / start it.
psexec.exe will help you here.
this guy can execute interactively in a remote execution. PowerShell in remoting cannot be used for interactive tasks.

How do I connect JProfiler on a JBoss 7.x server in Domain mode?

I want to profile a server (JVM) that is part of a JBoss 7.1.3 domain. The Server Integration wizard of JProfiler only modifies standalone.sh, which is of no use in domain mode. Does anyone know how to accomplish this?
For application servers that don't have an integration wizard, use the [Generic] integration wizard. It will give you a VM parameter that has to be added to the java invocation of the application server.

How can I connect Jprofiler with weblogic managed servers?

I am trying to connect Jprofiler7 to remote weblogic10.3 managed servers. I am able to connect and see admin console threads and memory usage in JProfiler but not for application deployed on managed server.
How can i achieve this?
Thanks
I had the same problem with WebLogic 12C on windows with JProfiler9 and solved it as follows:
Allow JProfiler to create startWebLogic_jprofiler.cmd by profiling WebLogic 12C, but don't attach the profiler at this point.
Edit startManagedWebLogic.cmd and call startWebLogic_jprofiler.cmd rather than startWebLogic.cmd
At a command prompt execute startWebLogic.cmd
At a command prompt execute startManagedWebLogic.cmd
In JProfiler, click "Start Center" icon. Click "New Server Integration". Select "Generic application server" and then "Wait for a connection from the JProfiler GUI". When the profiler starts it collects data from the managed weblogic server.
You're profiling the wrong server in that case. The VM parameter for JProfiler (-agentpath:...) has to be added to the JVM on which your application is executed.

How to Test JSP and Servlets in a Testing machine?

I am new to Java web Technology, I wanted to configure a server and Testing the Jsp and servlets application.
First download a server installer (a Tomcat would be the best), run it, and then, after the installation is complete, open your IDE (Eclipse, I presume), look for the "Servers" perspective, and right-click on it. There you can create a new server.
For further reading, http://www.eclipse.org/webtools/jst/components/ws/M4/tutorials/InstallTomcat.html