[
https://issues.apache.org/jira/browse/KARAF-5632?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16371220#comment-16371220
]
Richard Hierlmeier commented on KARAF-5632:
-------------------------------------------
Problem is the following code in
[https://github.com/apache/karaf/blob/karaf-3.0.x/diagnostic/core/src/main/java/org/apache/karaf/diagnostic/core/internal/HeapDumpProvider.java]
!screenshot-1.png!
In line 57 it is not considered, that the read does not fill up the buffer
completely
> dev:create-dump creates invalid dump file
> -----------------------------------------
>
> Key: KARAF-5632
> URL: https://issues.apache.org/jira/browse/KARAF-5632
> Project: Karaf
> Issue Type: Bug
> Affects Versions: 3.0.8
> Environment: karaf 3.0.8, windows 10
> Reporter: Richard Hierlmeier
> Priority: Major
> Attachments: screenshot-1.png
>
>
> When creating with the {{dev:create-dump}} command an heap dump, this dump
> can not be opened with eclipse memory analyser I get the following error:
> {noformat}
> The HPROF parser encountered a violation of the HPROF specification that it
> could not safely handle. This could be due to file truncation or a bug in the
> JVM. Please consider filing a bug at eclipse.org. To continue parsing the
> dump anyway, you can use -DhprofStrictnessWarning=true or set the strictness
> mode under Preferences > HPROF Parser > Parser Strictness. See the inner
> exception for details.
> The HPROF parser encountered a violation of the HPROF specification that it
> could not safely handle. This could be due to file truncation or a bug in the
> JVM. Please consider filing a bug at eclipse.org. To continue parsing the
> dump anyway, you can use -DhprofStrictnessWarning=true or set the strictness
> mode under Preferences > HPROF Parser > Parser Strictness. See the inner
> exception for details.
> (Possibly) Invalid HPROF file: Expected to read another 83.886.080 bytes, but
> only 1.500 bytes are available.
> (Possibly) Invalid HPROF file: Expected to read another 83.886.080 bytes, but
> only 1.500 bytes are available.
> {noformat}
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)