java


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.

Related Links

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

Categories

HOME
osgi
proxy
zeromq
minimum-spanning-tree
deezer
push-notification
twitter-bootstrap-4
serverspec
django-imagekit
slurm
offline
jplayer
alignment
vb.net-2010
commonmark
orchardcms
fallback
viewport
physics-engine
chromium-embedded
mmap
php-openssl
dxf
su
intel-pin
react-css-modules
greendao
windowbuilder
bpel
usbserial
nssegmentedcontrol
bootstrapper
unoconv
email-templates
mapzen
g-code
midl
s
babel-core
svmlight
namecoin
python-cryptography
pillow
angular-cache
probability-density
dstu2-fhir
qgraphicsview
revolution-r
cloudbees
xna-4.0
execute
ionic
ibaction
dundas
key-management
sonarqube5.1.2
pretty-print
csquery
typekit
phalanger
wordpress-theme-customize
castle
has-many-through
uitouch
message-driven-bean
pyhdf
mysqltuner
padarn
robotics-studio
distutils
isnullorempty
dbproviderfactories
parametric-equations
pydot
hirefire
xmlspy
f#-powerpack
modelstate
nhibernate.search
preference
mirah
user-friendly
phonon
sector
private-members
ugc
3gp

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App