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.
Reading a directory on a client's computer using Java from a web based service (HTML)
Android EditText hint uses the same font that the EditText has
javac working on server computer but not on client computers for programming purpose [duplicate]
JavaFX VGrow TabPane on content change
Implementing Content Provider for Search Widget Auto Suggestions
Java JFrame Boundaries
Grouping of data based on week using apache spark
How do I use arrays in combination with constructors?
send from tcp client to netty server data , How Bytebuf readInt work
why android lollipop modifies my styles?
How can I disable certain services and run only the ones I need in JBoss?
unable to find class referenced in signature (Landroid/sec/multiwindow/MultiWindow;)
Different AES Encryption results in PHP and JAVA
Finding the average of student [duplicate]
Fixing bitmap rotation in Android Studio with Java creates duplicate bitmap in phone gallery
Spring + GWTP: Excel file download from OutputStream not working