-
Improvement
-
Resolution: Fixed
-
Major
I encountered severe performance problems when using the customized warnings parser plugin with regex. It takes about a minute to parse the 250kb file in the attachment for warnings. Even a simple regex like just "INFO" takes 40 sec for the attached file.
A 6 MB log file took about 18 minutes with a slightly more difficult script. When I tested a log on java with about the same size and similar amount of categories, it terminated after 2 seconds.
Skript:
import hudson.plugins.warnings.parser.Warning return new Warning("fileName", 1, "Dynamic Parser", "category" , "normal")
Regex:
^([A-Z]+):(\s)*\[(.*)\].*at:\s(\w+\.java)\((\d+)\)(\s)*$
[JENKINS-14383] Warnings Plugin: Slow Performance on customized parsing rules with Regular Expression
Description |
Original:
Hello, I encountered severe performance problems when using the customized warnings parser plugin with regex. It takes about a minute to parse the 250kb file in the attachment for warnings. Even a simple regex like just "INFO" takes 40 seks for the attached file. A 6 MB log file took about 18 minutes with a slightly more dificult skript. When I tested a log on java with about the same size and similar amount of categorys, it terminated after 2 seconds. Skript: import hudson.plugins.warnings.parser.Warning return new Warning("fileName", 1, "Dynamic Parser", "category" , "normal") Regex: ^([A-Z]+):(\s)*\[(.*)\].*at:\s(\w+\.java)\((\d+)\)(\s)*$ |
New:
I encountered severe performance problems when using the customized warnings parser plugin with regex. It takes about a minute to parse the 250kb file in the attachment for warnings. Even a simple regex like just "INFO" takes 40 sec for the attached file. A 6 MB log file took about 18 minutes with a slightly more difficult script. When I tested a log on java with about the same size and similar amount of categories, it terminated after 2 seconds. Skript: {code} import hudson.plugins.warnings.parser.Warning return new Warning("fileName", 1, "Dynamic Parser", "category" , "normal") {code} Regex: {code} ^([A-Z]+):(\s)*\[(.*)\].*at:\s(\w+\.java)\((\d+)\)(\s)*$ {code} |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Workflow | Original: JNJira [ 145019 ] | New: JNJira + In-Review [ 191309 ] |