Re: RFR: 8252842: Extend jmap to support parallel heap dump [v32]

2021-09-23 Thread Lin Zang
On Thu, 23 Sep 2021 13:07:46 GMT, David Holmes wrote: >> Thanks @schmelter-sap and @plummercj for your help review and approve this >> PR! >> Since this is a non-trivial change, I would like to wait for 2 days before >> integrate it in case more comments from others. > > @linzang this change

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v32]

2021-09-23 Thread David Holmes
On Tue, 21 Sep 2021 02:07:39 GMT, Lin Zang wrote: >> I will start reviewing this today. > > Thanks @schmelter-sap and @plummercj for your help review and approve this PR! > Since this is a non-trivial change, I would like to wait for 2 days before > integrate it in case more comments from

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v32]

2021-09-20 Thread Lin Zang
On Wed, 8 Sep 2021 05:02:18 GMT, Ralf Schmelter wrote: >> Lin Zang has updated the pull request incrementally with one additional >> commit since the last revision: >> >> fix build error > > I will start reviewing this today. Thanks @schmelter-sap and @plummercj for your help review and

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v37]

2021-09-20 Thread Ralf Schmelter
On Thu, 16 Sep 2021 09:35:20 GMT, Lin Zang wrote: >> 8252842: Extend jmap to support parallel heap dump > > Lin Zang has refreshed the contents of this pull request, and previous > commits have been removed. The incremental views will show differences > compared to the previous content of the

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v32]

2021-09-16 Thread Lin Zang
On Wed, 8 Sep 2021 05:02:18 GMT, Ralf Schmelter wrote: >> Lin Zang has updated the pull request incrementally with one additional >> commit since the last revision: >> >> fix build error > > I will start reviewing this today. Hi Ralf @schmelter-sap, I have updated the PR, would you

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v37]

2021-09-16 Thread Lin Zang
> 8252842: Extend jmap to support parallel heap dump Lin Zang has refreshed the contents of this pull request, and previous commits have been removed. The incremental views will show differences compared to the previous content of the PR. The pull request contains one new commit since the last

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v36]

2021-09-15 Thread Lin Zang
> 8252842: Extend jmap to support parallel heap dump Lin Zang has updated the pull request incrementally with one additional commit since the last revision: fix build issue - Changes: - all: https://git.openjdk.java.net/jdk/pull/2261/files - new:

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v35]

2021-09-15 Thread Lin Zang
> 8252842: Extend jmap to support parallel heap dump Lin Zang has updated the pull request incrementally with one additional commit since the last revision: code refine - Changes: - all: https://git.openjdk.java.net/jdk/pull/2261/files - new:

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v34]

2021-09-15 Thread Lin Zang
> 8252842: Extend jmap to support parallel heap dump Lin Zang has updated the pull request incrementally with one additional commit since the last revision: fix issue - Changes: - all: https://git.openjdk.java.net/jdk/pull/2261/files - new:

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v33]

2021-09-14 Thread Lin Zang
> 8252842: Extend jmap to support parallel heap dump Lin Zang has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 49 commits: - fix parallel issue - Merge branch 'master' into pd-fix - Merge branch 'master' of

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v32]

2021-09-14 Thread Lin Zang
On Mon, 6 Sep 2021 08:03:22 GMT, Lin Zang wrote: >> 8252842: Extend jmap to support parallel heap dump > > Lin Zang has updated the pull request incrementally with one additional > commit since the last revision: > > fix build error rebased with latest master, and made some change to fix

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v32]

2021-09-14 Thread Lin Zang
On Mon, 13 Sep 2021 16:12:48 GMT, Ralf Schmelter wrote: >> Lin Zang has updated the pull request incrementally with one additional >> commit since the last revision: >> >> fix build error > > src/hotspot/share/services/heapDumper.cpp line 1797: > >> 1795: if (o->is_instance()) { >> 1796:

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v32]

2021-09-14 Thread Lin Zang
On Wed, 8 Sep 2021 05:02:18 GMT, Ralf Schmelter wrote: >> Lin Zang has updated the pull request incrementally with one additional >> commit since the last revision: >> >> fix build error > > I will start reviewing this today. Hi Ralf @schmelter-sap , Thanks for your review and

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v32]

2021-09-14 Thread Lin Zang
On Wed, 8 Sep 2021 13:39:08 GMT, Ralf Schmelter wrote: >> Lin Zang has updated the pull request incrementally with one additional >> commit since the last revision: >> >> fix build error > > src/hotspot/share/services/attachListener.cpp line 255: > >> 253: HeapDumper

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v32]

2021-09-13 Thread Ralf Schmelter
On Mon, 6 Sep 2021 08:03:22 GMT, Lin Zang wrote: >> 8252842: Extend jmap to support parallel heap dump > > Lin Zang has updated the pull request incrementally with one additional > commit since the last revision: > > fix build error The change seems OK so far, but I've found a few issues.

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v32]

2021-09-10 Thread Chris Plummer
On Fri, 10 Sep 2021 03:03:01 GMT, Lin Zang wrote: > Seems the #5410 has made some change that will affect this one. I am > wondering should I start to rebase this PR based on that ? It looks like at most there would be one conflict, and it is trivial. You'll eventually have to merge before

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v32]

2021-09-09 Thread Lin Zang
On Mon, 6 Sep 2021 08:03:22 GMT, Lin Zang wrote: >> 8252842: Extend jmap to support parallel heap dump > > Lin Zang has updated the pull request incrementally with one additional > commit since the last revision: > > fix build error Seems the #5410 has made some change that will affect this

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v32]

2021-09-09 Thread Chris Plummer
On Wed, 8 Sep 2021 05:02:18 GMT, Ralf Schmelter wrote: > I will start reviewing this today. Thanks! - PR: https://git.openjdk.java.net/jdk/pull/2261

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v32]

2021-09-07 Thread Ralf Schmelter
On Mon, 6 Sep 2021 08:03:22 GMT, Lin Zang wrote: >> 8252842: Extend jmap to support parallel heap dump > > Lin Zang has updated the pull request incrementally with one additional > commit since the last revision: > > fix build error I will start reviewing this today. - PR:

Re: RFR: 8252842: Extend jmap to support parallel heap dump

2021-09-07 Thread Chris Plummer
On Thu, 28 Jan 2021 07:30:29 GMT, Serguei Spitsyn wrote: >> 8252842: Extend jmap to support parallel heap dump > > Hi Lin, > It is also in my memory that you actually did not have 4 arguments. > The real incompatibility issue was that the order of arguments was swapped. > It is why it was

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v31]

2021-09-06 Thread Lin Zang
> 8252842: Extend jmap to support parallel heap dump Lin Zang has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 40 commits: - Merge branch 'master' into par-dump - Merge branch 'master' into par-dump - fix build issue - Merge

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v30]

2021-08-13 Thread Lin Zang
> 8252842: Extend jmap to support parallel heap dump Lin Zang has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 39 commits: - Merge branch 'master' into par-dump - fix build issue - Merge branch 'master' into par-dump - Merge

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v29]

2021-07-26 Thread Lin Zang
> 8252842: Extend jmap to support parallel heap dump Lin Zang has updated the pull request incrementally with one additional commit since the last revision: fix build issue - Changes: - all: https://git.openjdk.java.net/jdk/pull/2261/files - new:

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v28]

2021-07-26 Thread Lin Zang
> 8252842: Extend jmap to support parallel heap dump Lin Zang has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 37 commits: - Merge branch 'master' into par-dump - Merge branch 'master' into par-dump - Merge branch 'master' into

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v27]

2021-06-26 Thread Lin Zang
On Mon, 7 Jun 2021 07:58:26 GMT, Lin Zang wrote: >> 8252842: Extend jmap to support parallel heap dump > > Lin Zang has updated the pull request with a new target base due to a merge > or a rebase. The pull request now contains 36 commits: > > - Merge branch 'master' into par-dump > - Merge

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v27]

2021-06-25 Thread Lin Zang
On Mon, 7 Jun 2021 07:58:26 GMT, Lin Zang wrote: >> 8252842: Extend jmap to support parallel heap dump > > Lin Zang has updated the pull request with a new target base due to a merge > or a rebase. The pull request now contains 36 commits: > > - Merge branch 'master' into par-dump > - Merge

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v27]

2021-06-07 Thread Lin Zang
> 8252842: Extend jmap to support parallel heap dump Lin Zang has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 36 commits: - Merge branch 'master' into par-dump - Merge branch 'master' into par-dump - fix build issue after rebase

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v26]

2021-06-04 Thread Lin Zang
> 8252842: Extend jmap to support parallel heap dump Lin Zang has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 35 commits: - Merge branch 'master' into par-dump - fix build issue after rebase and fix one issue - Merge branch

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v25]

2021-05-19 Thread Lin Zang
On Wed, 19 May 2021 11:55:12 GMT, Lin Zang wrote: >> 8252842: Extend jmap to support parallel heap dump > > Lin Zang has updated the pull request with a new target base due to a merge > or a rebase. The pull request now contains 34 commits: > > - fix build issue after rebase and fix one issue

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v22]

2021-05-19 Thread Lin Zang
On Mon, 10 May 2021 23:29:36 GMT, Chris Plummer wrote: >> Lin Zang has updated the pull request incrementally with one additional >> commit since the last revision: >> >> code refine and typo fix > > I think you still need to undo the JMap.java changes since they are now being > handled by

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v25]

2021-05-19 Thread Lin Zang
> 8252842: Extend jmap to support parallel heap dump Lin Zang has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 34 commits: - fix build issue after rebase and fix one issue - Merge branch 'master' - Merge branch 'master' into pd -

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v24]

2021-05-12 Thread Chris Plummer
On Wed, 12 May 2021 11:10:37 GMT, Lin Zang wrote: >> 8252842: Extend jmap to support parallel heap dump > > Lin Zang has updated the pull request with a new target base due to a merge > or a rebase. The pull request now contains 32 commits: > > - Merge branch 'master' into pd > - update

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v24]

2021-05-12 Thread Lin Zang
On Wed, 12 May 2021 11:10:37 GMT, Lin Zang wrote: >> 8252842: Extend jmap to support parallel heap dump > > Lin Zang has updated the pull request with a new target base due to a merge > or a rebase. The pull request now contains 32 commits: > > - Merge branch 'master' into pd > - update

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v24]

2021-05-12 Thread Lin Zang
> 8252842: Extend jmap to support parallel heap dump Lin Zang has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 32 commits: - Merge branch 'master' into pd - update copyright info - Merge branch 'master' into par-dump - undo

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v23]

2021-05-11 Thread Chris Plummer
On Tue, 11 May 2021 03:19:05 GMT, Lin Zang wrote: >> 8252842: Extend jmap to support parallel heap dump > > Lin Zang has updated the pull request with a new target base due to a merge > or a rebase. The pull request now contains 30 commits: > > - Merge branch 'master' into par-dump > - undo

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v22]

2021-05-10 Thread Lin Zang
On Mon, 10 May 2021 23:29:36 GMT, Chris Plummer wrote: >> Lin Zang has updated the pull request incrementally with one additional >> commit since the last revision: >> >> code refine and typo fix > > I think you still need to undo the JMap.java changes since they are now being > handled by

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v23]

2021-05-10 Thread Lin Zang
> 8252842: Extend jmap to support parallel heap dump Lin Zang has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 30 commits: - Merge branch 'master' into par-dump - undo JMap.java - code refine and typo fix - Merge branch 'master'

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v22]

2021-05-10 Thread Chris Plummer
On Thu, 6 May 2021 08:45:45 GMT, Lin Zang wrote: >> 8252842: Extend jmap to support parallel heap dump > > Lin Zang has updated the pull request incrementally with one additional > commit since the last revision: > > code refine and typo fix I think you still need to undo the JMap.java

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v22]

2021-05-06 Thread Lin Zang
> 8252842: Extend jmap to support parallel heap dump Lin Zang has updated the pull request incrementally with one additional commit since the last revision: code refine and typo fix - Changes: - all: https://git.openjdk.java.net/jdk/pull/2261/files - new:

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v21]

2021-04-30 Thread Chris Plummer
On Mon, 26 Apr 2021 12:45:56 GMT, Lin Zang wrote: >> 8252842: Extend jmap to support parallel heap dump > > Lin Zang has updated the pull request with a new target base due to a merge > or a rebase. The pull request now contains 27 commits: > > - Merge branch 'master' into par-dump > -

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v21]

2021-04-30 Thread Chris Plummer
On Mon, 26 Apr 2021 12:45:56 GMT, Lin Zang wrote: >> 8252842: Extend jmap to support parallel heap dump > > Lin Zang has updated the pull request with a new target base due to a merge > or a rebase. The pull request now contains 27 commits: > > - Merge branch 'master' into par-dump > -

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v21]

2021-04-30 Thread Chris Plummer
On Mon, 26 Apr 2021 12:45:56 GMT, Lin Zang wrote: >> 8252842: Extend jmap to support parallel heap dump > > Lin Zang has updated the pull request with a new target base due to a merge > or a rebase. The pull request now contains 27 commits: > > - Merge branch 'master' into par-dump > -

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v20]

2021-04-30 Thread Lin Zang
On Wed, 21 Apr 2021 18:40:16 GMT, Chris Plummer wrote: >>> My concerns with your proposed testing is that it always targets the same >>> application with the same heap, and does not read/process the hprof file to >>> make sure it is not corrupt. >> >> Hmm, I agree, I will do more test and

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v20]

2021-04-26 Thread Lin Zang
On Wed, 14 Apr 2021 12:35:27 GMT, Lin Zang wrote: >> 8252842: Extend jmap to support parallel heap dump > > Lin Zang has updated the pull request with a new target base due to a merge > or a rebase. The pull request now contains 25 commits: > > - Merge branch 'master' into par-dump > - Merge

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v21]

2021-04-26 Thread Lin Zang
> 8252842: Extend jmap to support parallel heap dump Lin Zang has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 27 commits: - Merge branch 'master' into par-dump - refine with several fix - Merge branch 'master' into par-dump -

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v20]

2021-04-26 Thread Lin Zang
On Tue, 20 Apr 2021 22:20:17 GMT, Chris Plummer wrote: >> Lin Zang has updated the pull request with a new target base due to a merge >> or a rebase. The pull request now contains 25 commits: >> >> - Merge branch 'master' into par-dump >> - Merge branch 'master' into par-dump >> - Typo fix

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v20]

2021-04-21 Thread Lin Zang
On Wed, 21 Apr 2021 18:40:16 GMT, Chris Plummer wrote: > > > My concerns with your proposed testing is that it always targets the same > > > application with the same heap, and does not read/process the hprof file > > > to make sure it is not corrupt. > > > > > > Hmm, I agree, I will do more

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v20]

2021-04-21 Thread Chris Plummer
On Wed, 21 Apr 2021 05:56:21 GMT, Lin Zang wrote: > > My concerns with your proposed testing is that it always targets the same > > application with the same heap, and does not read/process the hprof file to > > make sure it is not corrupt. > > Hmm, I agree, I will do more test and update

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v20]

2021-04-20 Thread Lin Zang
On Wed, 21 Apr 2021 05:22:26 GMT, Chris Plummer wrote: > My concerns with your proposed testing is that it always targets the same > application with the same heap, and does not read/process the hprof file to > make sure it is not corrupt. Hmm, I agree, I will do more test and update here.

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v20]

2021-04-20 Thread Chris Plummer
On Wed, 14 Apr 2021 12:35:27 GMT, Lin Zang wrote: >> 8252842: Extend jmap to support parallel heap dump > > Lin Zang has updated the pull request with a new target base due to a merge > or a rebase. The pull request now contains 25 commits: > > - Merge branch 'master' into par-dump > - Merge

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v20]

2021-04-20 Thread Lin Zang
On Wed, 14 Apr 2021 12:35:27 GMT, Lin Zang wrote: >> 8252842: Extend jmap to support parallel heap dump > > Lin Zang has updated the pull request with a new target base due to a merge > or a rebase. The pull request now contains 25 commits: > > - Merge branch 'master' into par-dump > - Merge

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v20]

2021-04-20 Thread Chris Plummer
On Wed, 14 Apr 2021 12:35:27 GMT, Lin Zang wrote: >> 8252842: Extend jmap to support parallel heap dump > > Lin Zang has updated the pull request with a new target base due to a merge > or a rebase. The pull request now contains 25 commits: > > - Merge branch 'master' into par-dump > - Merge

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v20]

2021-04-20 Thread Chris Plummer
On Wed, 14 Apr 2021 12:35:27 GMT, Lin Zang wrote: >> 8252842: Extend jmap to support parallel heap dump > > Lin Zang has updated the pull request with a new target base due to a merge > or a rebase. The pull request now contains 25 commits: > > - Merge branch 'master' into par-dump > - Merge

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v19]

2021-04-14 Thread Lin Zang
On Mon, 29 Mar 2021 11:27:49 GMT, Lin Zang wrote: >> 8252842: Extend jmap to support parallel heap dump > > Lin Zang has updated the pull request with a new target base due to a merge > or a rebase. The pull request now contains 24 commits: > > - Merge branch 'master' into par-dump > - Typo

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v20]

2021-04-14 Thread Lin Zang
> 8252842: Extend jmap to support parallel heap dump Lin Zang has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 25 commits: - Merge branch 'master' into par-dump - Merge branch 'master' into par-dump - Typo fix - remove parallel

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v19]

2021-03-29 Thread Lin Zang
> 8252842: Extend jmap to support parallel heap dump Lin Zang has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 24 commits: - Merge branch 'master' into par-dump - Typo fix - remove parallel option and dumpheapext command - Revert

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v18]

2021-03-24 Thread Lin Zang
On Tue, 23 Mar 2021 23:33:02 GMT, Chris Plummer wrote: >> Lin Zang has updated the pull request incrementally with two additional >> commits since the last revision: >> >> - remove parallel option and dumpheapext command >> - Revert "hide the dumpheapext error message" >> >>This

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v18]

2021-03-23 Thread Chris Plummer
On Mon, 22 Mar 2021 12:35:52 GMT, Lin Zang wrote: >> 8252842: Extend jmap to support parallel heap dump > > Lin Zang has updated the pull request incrementally with two additional > commits since the last revision: > > - remove parallel option and dumpheapext command > - Revert "hide the

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v18]

2021-03-22 Thread Lin Zang
> 8252842: Extend jmap to support parallel heap dump Lin Zang has updated the pull request incrementally with two additional commits since the last revision: - remove parallel option and dumpheapext command - Revert "hide the dumpheapext error message" This reverts commit

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v17]

2021-03-22 Thread Lin Zang
> 8252842: Extend jmap to support parallel heap dump Lin Zang has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 20 commits: - resize large object threshold - Merge branch 'master' into par-dump - Merge branch 'master' into par-dump

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v10]

2021-03-22 Thread Lin Zang
On Fri, 19 Mar 2021 20:01:01 GMT, Chris Plummer wrote: >> Dear Ralf and Chris, >> >>> to be honest I would prefer if we would not add the parallel option but >>> instead do it automatically depending on the number of GC threads >>> available. I doubt that the user has a good idea about number

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v10]

2021-03-19 Thread Chris Plummer
On Thu, 18 Mar 2021 14:40:57 GMT, Lin Zang wrote: > * Is it acceptable that `jmap -dump` and `jmap -histo` have different > behavior about the option of `parallel`, that is, `heapdump` does not use it > and `heaphisto` does. And just to further clarify, the parallel support for `jmap -histo`

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v10]

2021-03-18 Thread Lin Zang
On Thu, 18 Mar 2021 12:20:25 GMT, Ralf Schmelter wrote: >> Dear Chris and Ralf, >> May I ask your help to review the related CSR first? both JDK-8260424 and >> JDK-8261943? >> https://bugs.openjdk.java.net/browse/JDK-8260424 is for adding >> `parallel=` option, which IMO also block the merge

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v13]

2021-03-18 Thread Lin Zang
On Thu, 18 Mar 2021 12:09:25 GMT, Ralf Schmelter wrote: >> Lin Zang has updated the pull request incrementally with one additional >> commit since the last revision: >> >> reduce memory consumption and fix memory leak issue > > src/hotspot/share/services/heapDumper.cpp line 1741: > >> 1739:

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v10]

2021-03-18 Thread Ralf Schmelter
On Thu, 18 Mar 2021 11:07:16 GMT, Lin Zang wrote: >> Dear Ralf @schmelter-sap, >> Sorry for late response, I got stuck in other work recently. >> I have uploaded a new update that could help reduce memory consumption and >> also fix the assertion issue. >> I have verified it on my machine,

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v13]

2021-03-18 Thread Ralf Schmelter
On Wed, 10 Mar 2021 09:41:21 GMT, Lin Zang wrote: >> 8252842: Extend jmap to support parallel heap dump > > Lin Zang has updated the pull request incrementally with one additional > commit since the last revision: > > reduce memory consumption and fix memory leak issue

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v10]

2021-03-18 Thread Lin Zang
On Wed, 10 Mar 2021 11:33:00 GMT, Lin Zang wrote: >> Hi @linzang >> >> >>> This data are really interest to me, it seems using gzipped dump is faster >>> than unzipped dump, is the because of disk writing or something else? I >>> would investigate more about it~ >> >> I would guess that is

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v16]

2021-03-15 Thread Lin Zang
> 8252842: Extend jmap to support parallel heap dump Lin Zang has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 18 commits: - Merge branch 'master' into par-dump - code clean - fix trailing white space issue - reduce memory

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v15]

2021-03-10 Thread Lin Zang
> 8252842: Extend jmap to support parallel heap dump Lin Zang has updated the pull request incrementally with one additional commit since the last revision: code clean - Changes: - all: https://git.openjdk.java.net/jdk/pull/2261/files - new:

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v10]

2021-03-10 Thread Lin Zang
On Tue, 23 Feb 2021 08:51:15 GMT, Ralf Schmelter wrote: >> Dear @plummercj, >> >> I have reconsidered the solution of “dumpheapext”, IMHO maybe the name is >> too specific, for example, if in future there is more arguments for >> `-histo`, we have to made another command called

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v14]

2021-03-10 Thread Lin Zang
> 8252842: Extend jmap to support parallel heap dump Lin Zang has updated the pull request incrementally with one additional commit since the last revision: fix trailing white space issue - Changes: - all: https://git.openjdk.java.net/jdk/pull/2261/files - new:

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v13]

2021-03-10 Thread Lin Zang
> 8252842: Extend jmap to support parallel heap dump Lin Zang has updated the pull request incrementally with one additional commit since the last revision: reduce memory consumption and fix memory leak issue - Changes: - all: https://git.openjdk.java.net/jdk/pull/2261/files

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v12]

2021-02-27 Thread Lin Zang
> 8252842: Extend jmap to support parallel heap dump Lin Zang has updated the pull request incrementally with one additional commit since the last revision: Revise jmap help info - Changes: - all: https://git.openjdk.java.net/jdk/pull/2261/files - new:

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v11]

2021-02-27 Thread Lin Zang
> 8252842: Extend jmap to support parallel heap dump Lin Zang has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 13 commits: - Merge master - fix build fail issue on windows - hide the dumpheapext error message - Merge branch

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v10]

2021-02-25 Thread Chris Plummer
On Thu, 25 Feb 2021 12:18:55 GMT, Lin Zang wrote: > Do you think it is ok if I change the help message of `parallel` option > `jmap -histo` in this PR together? Yes, I think that would be ok. - PR: https://git.openjdk.java.net/jdk/pull/2261

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v10]

2021-02-25 Thread Lin Zang
On Wed, 24 Feb 2021 04:12:13 GMT, Chris Plummer wrote: >>> It's too bad that the `dumpheap` command in previous JDKs has a slot for a >>> 3rd argument, but doesn't look at it. Maybe that was intentional to allow >>> for a new argument without causing a failure. What it means is if we want a

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v10]

2021-02-25 Thread Lin Zang
On Wed, 24 Feb 2021 04:12:13 GMT, Chris Plummer wrote: >>> It's too bad that the `dumpheap` command in previous JDKs has a slot for a >>> 3rd argument, but doesn't look at it. Maybe that was intentional to allow >>> for a new argument without causing a failure. What it means is if we want a

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v10]

2021-02-23 Thread Chris Plummer
On Wed, 24 Feb 2021 03:46:42 GMT, Lin Zang wrote: > > But they are far more convenient and easier to understand than jcmd, so > > will probably stay around. But you are right in that they could still all > > be converted to use jcmd internally. > > Maybe we could consider using `jcmd`

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v10]

2021-02-23 Thread Lin Zang
On Wed, 24 Feb 2021 02:48:06 GMT, Chris Plummer wrote: > It's too bad that the `dumpheap` command in previous JDKs has a slot for a > 3rd argument, but doesn't look at it. Maybe that was intentional to allow for > a new argument without causing a failure. What it means is if we want a >

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v10]

2021-02-23 Thread Chris Plummer
On Wed, 24 Feb 2021 03:24:46 GMT, Lin Zang wrote: > > JDK-8251347 does not appear to be the correct bug. Can you find the one you > > are referring too? > > oops, It should be https://bugs.openjdk.java.net/browse/JDK-8251374, sorry. Ok, but that fix is on the client side, not the target VM

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v10]

2021-02-23 Thread Lin Zang
On Wed, 24 Feb 2021 02:48:06 GMT, Chris Plummer wrote: > JDK-8251347 does not appear to be the correct bug. Can you find the one you > are referring too? oops, It should be https://bugs.openjdk.java.net/browse/JDK-8251374, sorry. - PR: https://git.openjdk.java.net/jdk/pull/2261

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v10]

2021-02-23 Thread Chris Plummer
On Wed, 24 Feb 2021 01:08:58 GMT, Lin Zang wrote: >>> I just realized that my understand is a little different with the >>> "retrying" - if we already know what is newly added argument, we can assume >>> old jvm can not accept it. So it seems print error message is enough. This >>> is

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v10]

2021-02-23 Thread Lin Zang
On Wed, 24 Feb 2021 00:40:03 GMT, Chris Plummer wrote: >>> So in general, I think any solution we come up with will fail with older >>> JDKs, and need to fallback to retrying with a command we know will work. >> >> Dear Chris, >> I just realized that my understand is a little different with

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v10]

2021-02-23 Thread Chris Plummer
On Wed, 24 Feb 2021 00:22:16 GMT, Lin Zang wrote: > I just realized that my understand is a little different with the "retrying" > - if we already know what is newly added argument, we can assume old jvm can > not accept it. So it seems print error message is enough. This is consistent >

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v10]

2021-02-23 Thread Lin Zang
On Wed, 24 Feb 2021 00:02:33 GMT, Lin Zang wrote: > So in general, I think any solution we come up with will fail with older > JDKs, and need to fallback to retrying with a command we know will work. Dear Chris, I just realized that my understand is a little different with the "retrying" -

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v10]

2021-02-23 Thread Lin Zang
On Wed, 24 Feb 2021 00:02:33 GMT, Lin Zang wrote: >>> I have reconsidered the solution of “dumpheapext”, IMHO maybe the name is >>> too specific, for example, if in future there is more arguments for >>> `-histo`, we have to made another command called "inspectheapext". >>> >>> How about

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v10]

2021-02-23 Thread Lin Zang
On Tue, 23 Feb 2021 23:00:30 GMT, Chris Plummer wrote: >> Dear @plummercj, >> >> I have reconsidered the solution of “dumpheapext”, IMHO maybe the name is >> too specific, for example, if in future there is more arguments for >> `-histo`, we have to made another command called

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v10]

2021-02-23 Thread Chris Plummer
On Tue, 23 Feb 2021 08:37:34 GMT, Lin Zang wrote: > I have reconsidered the solution of “dumpheapext”, IMHO maybe the name is too > specific, for example, if in future there is more arguments for `-histo`, we > have to made another command called "inspectheapext". > > How about create a new

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v10]

2021-02-23 Thread Ralf Schmelter
On Tue, 23 Feb 2021 08:37:34 GMT, Lin Zang wrote: >> Dear @ralf, >> Really Thanks for benchmarking it! >> It is a little surprise to me that "parallel=1" is 10~20 percent slower than >> before. I believe this can be avoid with some revise in code. And I also >> found a potential memory leak in

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v10]

2021-02-23 Thread Lin Zang
On Tue, 23 Feb 2021 08:23:49 GMT, Lin Zang wrote: >> Hi @linzang, >> >> I've done more benchmarking using different numbers of threads for parallel >> heap iteration and have found values which give at least a factor of 2 >> speedup (for gzipped dumps) or 1.6 (for unzipped dumps). For my

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v10]

2021-02-23 Thread Lin Zang
On Tue, 23 Feb 2021 08:06:14 GMT, Ralf Schmelter wrote: >> Hi @schmelter-sap, >> Thanks a lot for reviewing and benchmarking. >> >>> I've benchmarked the code on my machine (128GB memory, 56 logical CPUs) >>> with an example creating a 32 GB heap dump. I only saw a 10 percent >>> reduction

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v10]

2021-02-23 Thread Ralf Schmelter
On Mon, 22 Feb 2021 07:36:55 GMT, Lin Zang wrote: >> Hi, >> >> I've benchmarked the code on my machine (128GB memory, 56 logical CPUs) with >> an example creating a 32 GB heap dump. I only saw a 10 percent reduction in >> time, both using uncompressed and compressed dumps. Have you seen

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v10]

2021-02-21 Thread Lin Zang
On Mon, 22 Feb 2021 05:53:19 GMT, Ralf Schmelter wrote: >> Lin Zang has updated the pull request incrementally with one additional >> commit since the last revision: >> >> fix build fail issue on windows > > Hi, > > I've benchmarked the code on my machine (128GB memory, 56 logical CPUs)

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v10]

2021-02-21 Thread Ralf Schmelter
On Fri, 19 Feb 2021 14:36:00 GMT, Lin Zang wrote: >> 8252842: Extend jmap to support parallel heap dump > > Lin Zang has updated the pull request incrementally with one additional > commit since the last revision: > > fix build fail issue on windows Hi, I've benchmarked the code on my

Re: RFR: 8252842: Extend jmap to support parallel heap dump

2021-02-19 Thread Lin Zang
On Thu, 18 Feb 2021 16:38:04 GMT, Chris Plummer wrote: > Or the other option would be to eat the exception and produce an error > message saying that the `parallel` option is not supported by the target VM. > I don't think the user should be exposed to the "Operation dumpheapext not >

Re: RFR: 8252842: Extend jmap to support parallel heap dump [v9]

2021-02-19 Thread Lin Zang
> 8252842: Extend jmap to support parallel heap dump Lin Zang has updated the pull request incrementally with one additional commit since the last revision: hide the dumpheapext error message - Changes: - all: https://git.openjdk.java.net/jdk/pull/2261/files - new:

Re: RFR: 8252842: Extend jmap to support parallel heap dump

2021-02-19 Thread Lin Zang
On Fri, 19 Feb 2021 04:20:14 GMT, Chris Plummer wrote: > > CSR requests are associated with a JBS issue not a PR. If there exists a > > CSR request for this JBS issue and you are making further changes then move > > the CSR back to draft and update it and re-submit it. > > Thanks, > > David >

Re: RFR: 8252842: Extend jmap to support parallel heap dump

2021-02-18 Thread David Holmes
On 19/02/2021 2:22 pm, Chris Plummer wrote: On Thu, 18 Feb 2021 16:39:46 GMT, Chris Plummer wrote: Dear All, I am going to create a CSR for the new internal command "dumpheapext", one problem is that seem if a new CSR is created, this PR will depends on 2 CSRs, I am not sure is this

Re: RFR: 8252842: Extend jmap to support parallel heap dump

2021-02-18 Thread Chris Plummer
On Thu, 18 Feb 2021 16:39:46 GMT, Chris Plummer wrote: >> Dear All, >> I am going to create a CSR for the new internal command "dumpheapext", >> one problem is that seem if a new CSR is created, this PR will depends on 2 >> CSRs, I am not sure is this reasonable? Thanks! > >> I am

Re: RFR: 8252842: Extend jmap to support parallel heap dump

2021-02-18 Thread David Holmes
On 19/02/2021 2:42 am, Chris Plummer wrote: On Thu, 18 Feb 2021 08:58:25 GMT, Lin Zang wrote: Hi Chris, I have update the PR to add a new dumpheapext command that could handle more arguments passed from JMap.java. And I have tested with "jmap -dump:file=dump.bin,noparallel [pid]", with this

  1   2   >