Can you explain the thread profile graph?
I'm new to the java profiling I have a thread which reads from a file are do some regex operation on each line. The above picture is the graph that I got from the JVisualVM profiler for my thread. Green is running. Purple is sleeping. Orange is parked It seems the thread sleep more than running. I know due to File read this is somewhat acceptable. But this seems way more than that. Can you please explain, does it have anything to do which regex operation or do I need to look for more optimization?
The profiling result is not unexpected for this kind of work. The thread is sleeping most of the time because of the file access. To get substantial speed improvements, you will probably have to address file access in some way.
Regex: All alphanumeric with at most one dot in the middle
Tomcat stuck at “Starting ProtocolHandler” when using WebappRunner
How do I change the color of subtasks in a Gantt chart in Java?
Pause/Stop/Resume music with clip JAVA
Kubernetes: Exposed service to deployment unreachable
How to get RealmList inside Thread?
Android: Passing an arraylist to another activity (Attempt to invoke interface method 'int java.util.List.size()' on a null object reference)
Netacad unable to load resource error jnlp
How can I return a hole Method as String [closed]
Remote SOAP web service keeps breaking connection
Changing default code in catch-Block of an auto-inserted exception block in IntelliJ
Unable to get the data in list view of API integration in android studio
Spring JPA caching - should I avoid retrieving the same resource from repository a few times?
REST WebServices - Is it a good or general practice to accept a JSON but return an XML or vice-versa?
Display data from Oracle XE database
Generic push to a Stack gives compilation error