We have a java application that' running in a linux centos.
I think there's a java app design flaw - I've allocated 2 CPU and 4 CPU and the Java application seems to only consume a weight of 10 queries per second and it will bog down. This means it doesn't matter how much memory and cpu I allocate - it will slow down as the algorithm can't take it.
1. I have 2 cpu allocated and each one is utilizing 50% => the Java app was at 100% when watching TOP (linux)
2. I have 4 cpu allocated and each one is utilizing 25% => the Java app was at 100% when watching TOP (linux)
The link shows 4 CPU but the java application could not utilized all 4 CPU with 100% each? I don't have the source code but would like to inquire from the experts on how do you think this is and how can we have each core to utilize 100%?