Linux机器中堆使用所需的jmap命令的替代

时间:2019-03-12 10:26:12

标签: java linux

对于Java 1.8的Linux机器上特定进程的堆使用,我需要命令private void addCommandTextContextMenu() { MenuManager popupMenu = new MenuManager("#PopupMenu"); popupMenu.setRemoveAllWhenShown(true); popupMenu.addMenuListener(new IMenuListener() { public void menuAboutToShow(IMenuManager manager) { Action aAction = new Action("A") {}; Action bAction = new Action("B") {}; Action cAction = new Action("C") {}; manager.add(aAction); manager.add(bAction); manager.add(cAction); } }); MenuManager subMenu = new MenuManager("#SubMenu"); subMenu.setRemoveAllWhenShown(true); subMenu.addMenuListener(new IMenuListener() { public void menuAboutToShow(IMenuManager manager) { Action dAction = new Action("D") {}; Action eAction = new Action("E") {}; Action fAction = new Action("F") {}; manager.add(dAction); manager.add(eAction); manager.add(fAction); } }); popupMenu.add(subMenu); final Menu menu2 = popupMenu.createContextMenu(commandText); commandText.setMenu(menu2); } 的替代。

0 个答案:

没有答案