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

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

Categories

HOME
log4j
testng
mfc
relative-path
lodash
syntax
malloc
installshield
adfs
metatrader4
static-libraries
visual-studio-cordova
msp430
pc
connection-string
normalizr
samoa
jtextfield
php-openssl
restful-authentication
blazemeter
android-widget
numerical-methods
fish
preg-match-all
karaf
jspresso
kendo-ui-grid
avcapturesession
hockeyapp
android-browser
sharefile
preconditions
eclipse-scout
grid.mvc
.net-4.6.2
multipeer-connectivity
hendrix
veracode
togetherjs
setter
spring-mongodb
titanium-android
pycaffe
watchconnectivity
pcf
skobbler-maps
gridview-sorting
superstack
sdf
ford-fulkerson
separator
spim
xna-4.0
endeca-workbench
mutation-observers
pundit
computer-algebra-systems
emailrelay
appfabric-cache
unity3d-gui
key-management
inmobi
c++03
system.reflection
website-monitoring
clicktag
file-copying
mdt
xojo
expected-exception
dealloc
bundles
balanced-payments
algebraic-data-types
typo3-neos
dir
jmapviewer
mylyn
interface-orientation
factory-method
rdoc
broken-links
dotnethighcharts
qt-jambi
jmock
mysql-error-1005
yslow
google-friend-connect
asp.net-mvc-areas
infrastructure
castle-monorail
compiler-specific
javap
adrotator
eqatec
mediarss
paul-graham
rtml

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App