Babak Simon

Greenhorn
+ Follow
since Dec 28, 2020
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Babak Simon

I want to enable JMX remote in my wildfly . So at the first step add follow to my standalone.conf file

JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.rmi.port=9000 -Dcom.sun.management.jmxremote.port=9000 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=false"

but when I run wildfly with standalone.sh it cannot start service and show follow error :

1 year ago
After run and install Apache we can access three address by default :

https://ip_address/manual/
https://ip_address/mailman/listinfo
https://ip_address/mailman/create

now I want block these address but don't know which config file and where had to modify to block these paths
Would you please hep me about that ?
3 years ago

Tim Holloway wrote:

Babak Simon wrote:
Exactly. when I kill PID 7822 cou usage decrease and is about 10% . is that possible to find and solve issue viia threaddump or heapdump ?



What I would generally do when using the Eclipse IDE would be to identify the high-usage thread, pause it and look at the stack trace. For best results this might need to be done more than once, since Murphy's Law states that if a thread spends 90% of its time running at 90% CPU and 10% of the time at 10% CPU, chances are high that when you pause it it will be running the 10% part.

There are other IDEs and other tools, of course. And a profiler can be used to see what percent of the overall time was spend in which method. Which is basically doing what I mentioned automatically at high speeds so as to confound Mr. Murphy.



Now. As I am a system admin not a developer how can find the problem ? what is the solution ?
3 years ago

Tim Moores wrote:If you can, turn off all webapps, and see what that does to CPU usage. (Without webapps, it should be close to zero.) Then turn them on one by one to see which one causes the CPU spike. If this is a production machine where that is not feasible, and Wildfly has no built-in facilities to monitor individual webapps, you may need to instrument the server to gather more data. https://sourceforge.net/projects/jamonapi/ is something that may be of help with that.



Exactly. when I kill PID 7822 cou usage decrease and is about 10% . is that possible to find and solve issue viia threaddump or heapdump ?
3 years ago

Tim Holloway wrote:

Babak Simon wrote:Now . How can solve this issue ?



You can start by not blindly dismissing suggestions that do not please you. Then again, many of the world's problems would be reduced if people didn't simply reject things they didn't like and look for the "solutions" tht pleased them.

Virtual CPUs don't magically create extra processing power. Quite the reverse. They are, after all, just sliced out of the physical CPUs that underpin them. Many virtual machine managers in fact, contain tuning parameters that can throttle not only the number of virtual CPUs, but also their overall service level on the physical machine. That's true for VMs, containers, and many physical OS's as well. I believe that "slicing" is what Linux calls it and support for such things under that OS seems to be on the uptick recently.

I was listing ALL primary possible reasons, not just the most likely ones.

In actuality, I think you have enough CPU. I don't have quite enough data to be certain, but I don't think you're having a high swap rate. So that leaves the third possibility.

I would recommend running a performance monitor on the server to track down and identify the hungry threads.

And just to be clear, webapp servers come pre-set with parameters and self-tuning services that make them perform adequately under most requirements. Tuning is what you do when you've identified a specific unusual requirement.



As I reas in many forums mentioned can find the solution via threaddump . Is that correct ? If yes Would you say please how can get it and upload here to find the reason

3 years ago

Tim Holloway wrote:These are the reasons that "web servers can have high CPU".

1. You're using an ancient and underpowered CPU. Like, say, a Pentium.

2. You don't have enough physical RAM and the memory-swapping subsystem is eating CPU.

3. You have one or more poorly-designed webapps that are eating up CPU.

The web server is almost never the primary consumer of CPU. They're designed to be relatively lightweight. It's almost always the apps hosted by the server that are the real pigs.



1- No. this is a virtual machine and I am using Platinum CPU 2.5GHZ  that is so huge
2- According to or monitor system memory usage on this system is more than 50%
Also as I was read in many sites mentioned we need do some configuration on wildfly . Is that correct ?

Now . How can solve this issue ?
3 years ago

Campbell Ritchie wrote:Welcome to the Ranch

Please post the figures rather than pastebin links; many people are reluctant to open such links.



Excuse Me. I have attached both files.
3 years ago
I am using wildfly-11 on Redhat. According to follow figures due running it my CPU Usage is so heavy thus decrease our performance even crash it. How can solve this issue ? Is there any specific configuration on wildfly to handle it

https://pasteboard.co/JH1kXHW.jpg

https://pasteboard.co/JH1l9C5.jpg

BR
Babak
3 years ago