-
Bug
-
Resolution: Unresolved
-
Critical
-
None
-
Jenkins 1.642
1.642.4.2
The disk usage plugin took forever to load and blocked Jenkins from coming up.
"Jenkins initialization thread" id=60 (0x3c) state=RUNNABLE cpu=62%
at java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:242)
at java.io.File.exists(File.java:819)
at hudson.plugins.disk_usage.DiskUsageProperty.loadDiskUsage(DiskUsageProperty.java:468)
at hudson.plugins.disk_usage.DiskUsageUtil.loadData(DiskUsageUtil.java:92)
at hudson.plugins.disk_usage.DiskUsageUtil.addProperty(DiskUsageUtil.java:78)
at hudson.plugins.disk_usage.DiskUsageItemListener.onLoaded(DiskUsageItemListener.java:47)
at jenkins.model.Jenkins.<init>(Jenkins.java:856)
at hudson.model.Hudson.<init>(Hudson.java:83)
at hudson.model.Hudson.<init>(Hudson.java:79)
at hudson.WebAppMain$3.run(WebAppMain.java:225)
- links to
I am dealing with problem accuracy of information about disk usage and performance. I do not want to break lazy loading - so I put information about builds (I need only number of build and its disk usage), but in case of a lot of builds. I need to do it only once to cash information. But in case of lot of build it causes that all builds need to be loaded during start. It can slow down the start a lot. But without doing it I am not able to display disk usage per build. Before It was done every time when it was needed to re-calculate disk usage (periodic task) but it causes loading build for every recalculation which damaged performance of jenkins during execution. Now I am trying to find out how to customize it more and give user an option how much accuracy he needs and make him aware that there is a price for accuracy - small instances with a few jobs and builds and no big amount of small files in artefacts of builds can afford big accuracy and loading builds all the time and recalculation, on the other hand big instances with a lot of files can have performance issues.