Using Jprofiler with Wildfly10 on remote machine(Linux) - jprofiler

I need to use jprofiler along with wildfly 10.
I want to know how to attach jprofiler while starting wildfly.
I tried searching but havent got any related links.
Please can someone tell me how to do that.

In the JProfiler GUI, invoke
Session->Integration Wizards->New Server Integration
and follow the steps in the wizard.

Related

Run Redis server as service on Window 10?

I was able to run the redis server through the Windows Subsystem for Linux following this guide: https://medium.com/#RedisLabs/windows-subsystem-for-linux-wsl-10e3ca4d434e.
But I do not fully understand how the subsystem works. I thought it would run the server on Windows and I could see this in the Windows Services which is not the case. Can someone tell me how to run Redis as a service.
EDIT
Does someone know if there is a standard way to download and install Redis for windows other than using the WSL? I have seen some guides, but they are outdated.

Get few information of virtual machines using PowerCLI

I am using PowerCLI on RHEL to fetch information from VMs.
I have searched many websites, but I am not getting how to find this details like:
Established connections of VM,
Load Average,
Top Processes,
Process Counts..
It would be a grateful, if anybody knows how to get these details using PowerCLI...
note: I think there are cmdlets which work for windows powerCLi, but doesn't for RHEL.
Thank you
Invoke-VMScript is going to be the cmdlet you'll want to use to obtain that sort of information, however it is not yet functional in the PowerCLI Core fling.
Note: The PowerCLI Core fling isn't a supported VMware release and it also has a dependency on using the PowerShell Alpha release... where as PowerShell is on Beta and even RC builds.
The goal is certainly to make it functional on PowerShell 6.0, but it's not there yet.

Cleaning JBoss AS 7.1 Standalone.xml

I couldn't find an answer to this in any other questions and I wanted to see if anyone knew. I'm using JBoss AS 7.1 on Kepler eclipse, and I was wondering if there is a way to change your standalone.xml while the server is running and have Jboss push the change. Would just cleaning the server do this?
You can't edit the raw XML files and see runtime changes. In fact there is a good chance any changes will be overwritten by the server.
The best way to make runtime changes is either via the web console or the CLI environment. I don't know if JBoss Tools has any kind of CLI type of client that can be used.

Server port 9081 is in use, starting Websphere Application Server in RAD

very quick question regarding an issue I never seen before. I've being using RAD 6 for java development, with Websphere portal server 5.0 installed. When I trying to start the server, I get the following error in a popup:
Which none of what's described is the true in my case...and still the case even though I rebooted the PC, as well as checking for any redundant javaw.exe processes.
Thanks for you help
I asked a colleague, they suggested that you have a server set up which is defined to run as a service. Since the service will start automatically with Windows, rebooting won't help.
Check your services.msc and see if there's a service for WebSphere, then try stopping it and starting your server from within RAD.
Do one thing, if it's possible. Just go to running programs and check for any java.exe and stop/delete all of them. And try restarting your server. And check if it makes any sense.
Hope it helps.
//HP
Start command prompt (if you're on Windows Vista and up, ensure you start it in admin mode).
Type:
netstat -a -b
This will show you all ports being listened. Look for 9081, and then you'll be able to see the process that is capturing that port.
Which process was it?
An easiest way to do so is kill the jawa/javaw process from the taskmanager.
And then start the server.

jvisualvm doesn't list certain Java processes

I want to get a heap dump (suspected memory leak) of a certain Java process. However, when I start the jvisualvm tool, I cannot see any of the running Java processes.
I have Google'd around about this and have already found a couple of articles saying that you have to run the Java processes using the same JDK that you start the jvisualvm tool with in order for it to be able to see them. However, as far as I can see, this is already the case. I'm doing everything locally (I have remote access to the machine).
A couple of things to consider:
The processes are running on a firewalled Windows 2008 server
The processes are running using renamed versions of the JDK java.exe executable
As far as I can see the processes are running using the 1.6.0_18 JDK
One of the running processes starts an RMI registry
I'm waiting on a virtualized copy of the server so I can mess around with it (this is a production server). But in the meanwhile; any ideas as to why I cannot see any of the processes in jvisualvm (or jconsole for that matter)?
Well after I did a little research, it would appear that Peter's comment was correct. Because the JVM processes were launched by another user (the NETWORK SERVICE account because they were being started by a Windows service) they didn't show up in jvisualvm.
Workaround
Since I have access to the application configuration, I have found the following workaround, which involves explicitly enabling unsecured JMX for the target JVM:
Add the following JVM parameters:
-Dcom.sun.management.jmxremote.port=3333 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false
Add the remote process to jvisualvm using JMX by click File -> Add JMX Connection. You can connect to the process using port 3333. Obviously you can change the port if you want.
Link to article explaining this in a little more detail: http://download.oracle.com/javase/6/docs/technotes/guides/visualvm/jmx_connections.html
Notes
It's probably not a good idea to keep the JVM settings permanently, as they would allow anyone to connect to the JVM via JMX.
You can also add authentication to the JMX JVM parameters if you want to.
The simplest way is to execute jvisualvm as administrator (win: "run as administrator"). Which is not ideal but works. All java processes are visible then.