|
From: yangqinghe (JIRA) <no...@sp...> - 2009-09-21 09:20:05
|
"OutOfMemoryError" exception occurs after the popup menu has been shown repeatedly
----------------------------------------------------------------------------------
Key: RCP-611
URL: https://jira.springsource.org/browse/RCP-611
Project: Spring Rich Client Project
Issue Type: Bug
Components: Core
Affects Versions: 1.1.0
Environment: JRE: Sun Microsystems Inc., 1.6.0_07
Operating System: Windows XP x86 5.1
Reporter: yangqinghe
Assignee: Lieven Doclo
There is a simple implement for showing popup menu.Below is the source codes
@Override
public void mouseReleased(MouseEvent e) {
if (e.isPopupTrigger()) {
JPopupMenu popupMenu = commandGroup.createPopupMenu();\\ commandGroup is a CommandGroup instance if spring rich client
popupMenu.show(table, e.getPoint().x, e.getPoint().y);
}
}
If that popup menu has been shown repeatedly in our app, the "OutOfMemoryError" exception will occur finally.
Below is the error tracks:
2009-05-13 23:26:13,892 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
java.lang.OutOfMemoryError: Java heap space
2009-05-13 23:26:18,752 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
java.lang.OutOfMemoryError: Java heap space
2009-05-13 23:26:23,611 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
java.lang.OutOfMemoryError: Java heap space
2009-05-13 23:26:28,470 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
java.lang.OutOfMemoryError: Java heap space
2009-05-13 23:26:33,345 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
java.lang.OutOfMemoryError: Java heap space
2009-05-13 23:26:38,205 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
java.lang.OutOfMemoryError: Java heap space
2009-05-13 23:26:43,080 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
java.lang.OutOfMemoryError: Java heap space
2009-05-13 23:26:47,970 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
java.lang.OutOfMemoryError: Java heap space
2009-05-13 23:26:52,830 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
java.lang.OutOfMemoryError: Java heap space
2009-05-13 23:26:57,673 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
java.lang.OutOfMemoryError: Java heap space
2009-05-13 23:27:02,548 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
java.lang.OutOfMemoryError: Java heap space
2009-05-13 23:27:07,423 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
java.lang.OutOfMemoryError: Java heap space
2009-05-13 23:27:13,220 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
java.lang.OutOfMemoryError: Java heap space
2009-05-13 23:27:18,095 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
java.lang.OutOfMemoryError: Java heap space
2009-05-13 23:27:22,955 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
java.lang.OutOfMemoryError: Java heap space
2009-05-13 23:27:27,814 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
java.lang.OutOfMemoryError: Java heap space
2009-05-13 23:27:32,689 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
java.lang.OutOfMemoryError: Java heap space
2009-05-13 23:27:37,564 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
java.lang.OutOfMemoryError: Java heap space
2009-05-13 23:27:42,439 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
java.lang.OutOfMemoryError: Java heap space
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.springsource.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
|
From: yangqinghe (JIRA) <no...@sp...> - 2009-09-21 09:28:07
|
[ https://jira.springsource.org/browse/RCP-611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46842#action_46842 ]
yangqinghe commented on RCP-611:
--------------------------------
Below is the format source codes:
{code:title=Example.java|borderStyle=solid}
@Override
public void mouseReleased(MouseEvent e) {
if (e.isPopupTrigger()) {
// commandGroup is a CommandGroup instance of spring rich client
JPopupMenu popupMenu = commandGroup.createPopupMenu();
popupMenu.show(table, e.getPoint().x, e.getPoint().y);
}
}
{code}
> "OutOfMemoryError" exception occurs after the popup menu has been shown repeatedly
> ----------------------------------------------------------------------------------
>
> Key: RCP-611
> URL: https://jira.springsource.org/browse/RCP-611
> Project: Spring Rich Client Project
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.1.0
> Environment: JRE: Sun Microsystems Inc., 1.6.0_07
> Operating System: Windows XP x86 5.1
> Reporter: yangqinghe
> Assignee: Lieven Doclo
>
> There is a simple implement for showing popup menu.Below is the source codes
> @Override
> public void mouseReleased(MouseEvent e) {
> if (e.isPopupTrigger()) {
> JPopupMenu popupMenu = commandGroup.createPopupMenu();\\ commandGroup is a CommandGroup instance if spring rich client
> popupMenu.show(table, e.getPoint().x, e.getPoint().y);
> }
> }
> If that popup menu has been shown repeatedly in our app, the "OutOfMemoryError" exception will occur finally.
> Below is the error tracks:
> 2009-05-13 23:26:13,892 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:18,752 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:23,611 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:28,470 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:33,345 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:38,205 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:43,080 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:47,970 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:52,830 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:57,673 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:02,548 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:07,423 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:13,220 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:18,095 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:22,955 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:27,814 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:32,689 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:37,564 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:42,439 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.springsource.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
|
From: yangqinghe (JIRA) <no...@sp...> - 2009-09-21 09:49:04
|
[ https://jira.springsource.org/browse/RCP-611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46843#action_46843 ]
yangqinghe commented on RCP-611:
--------------------------------
I have attached the jmap file(the output file of JDK's jmap command,see jmap.txt).There exist huge instances of JMenuItem.
> "OutOfMemoryError" exception occurs after the popup menu has been shown repeatedly
> ----------------------------------------------------------------------------------
>
> Key: RCP-611
> URL: https://jira.springsource.org/browse/RCP-611
> Project: Spring Rich Client Project
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.1.0
> Environment: JRE: Sun Microsystems Inc., 1.6.0_07
> Operating System: Windows XP x86 5.1
> Reporter: yangqinghe
> Assignee: Lieven Doclo
> Attachments: jmap.txt
>
>
> There is a simple implement for showing popup menu.Below is the source codes
> @Override
> public void mouseReleased(MouseEvent e) {
> if (e.isPopupTrigger()) {
> JPopupMenu popupMenu = commandGroup.createPopupMenu();\\ commandGroup is a CommandGroup instance if spring rich client
> popupMenu.show(table, e.getPoint().x, e.getPoint().y);
> }
> }
> If that popup menu has been shown repeatedly in our app, the "OutOfMemoryError" exception will occur finally.
> Below is the error tracks:
> 2009-05-13 23:26:13,892 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:18,752 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:23,611 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:28,470 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:33,345 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:38,205 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:43,080 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:47,970 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:52,830 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:57,673 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:02,548 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:07,423 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:13,220 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:18,095 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:22,955 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:27,814 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:32,689 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:37,564 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:42,439 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.springsource.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
|
From: yangqinghe (JIRA) <no...@sp...> - 2009-09-21 09:55:05
|
[ https://jira.springsource.org/browse/RCP-611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46844#action_46844 ]
yangqinghe commented on RCP-611:
--------------------------------
I have dug into the source code of the newest version of spring rich client.
Please notice the code fragments below:
{code:title=CommandGroup.java|borderStyle=solid}
public JPopupMenu createPopupMenu() {
return createPopupMenu(getMenuFactory());
}
public JPopupMenu createPopupMenu(MenuFactory factory) {
JPopupMenu popup = factory.createPopupMenu();
bindMembers(popup, popup, factory, getMenuItemButtonConfigurer());
return popup;
}
private void bindMembers(Object owner, Container memberContainer, Object controlFactory,
CommandButtonConfigurer configurer) {
getMemberList().bindMembers(owner, new SimpleGroupContainerPopulator(memberContainer), controlFactory,
configurer);
}
{code}
{code:title=GroupMemberList.java|borderStyle=solid}
private Map builders = new WeakHashMap(6);
protected void bindMembers(Object owner, GroupContainerPopulator container, Object factory,
CommandButtonConfigurer configurer) {
GroupMemberContainerManager builder = new GroupMemberContainerManager(container, factory, configurer);
builder.rebuildControlsFor(members);
builders.put(owner, builder);
}
{code}
It seems that the new created popup menu will be put into a WeakHashMap and the API doc of WeakHashMap says that:
...Thus care should be taken to ensure that value objects do not strongly refer to their own keys, either directly or indirectly, since that will prevent the keys from being discarded.
We can see that new created popup menu will be put into a WeakHashMap and the map's value is indirectly refer to its own key, therefore the popup menu will be never discarded.
It means that the problem exists in newest version of spring rich client as well.
(I have attached the source code of CommandGroup.java and GroupMemberList.java.
Please see: newest version of CommandGroup and GroupMemberList.rar.)
> "OutOfMemoryError" exception occurs after the popup menu has been shown repeatedly
> ----------------------------------------------------------------------------------
>
> Key: RCP-611
> URL: https://jira.springsource.org/browse/RCP-611
> Project: Spring Rich Client Project
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.1.0
> Environment: JRE: Sun Microsystems Inc., 1.6.0_07
> Operating System: Windows XP x86 5.1
> Reporter: yangqinghe
> Assignee: Lieven Doclo
> Attachments: jmap.txt
>
>
> There is a simple implement for showing popup menu.Below is the source codes
> @Override
> public void mouseReleased(MouseEvent e) {
> if (e.isPopupTrigger()) {
> JPopupMenu popupMenu = commandGroup.createPopupMenu();\\ commandGroup is a CommandGroup instance if spring rich client
> popupMenu.show(table, e.getPoint().x, e.getPoint().y);
> }
> }
> If that popup menu has been shown repeatedly in our app, the "OutOfMemoryError" exception will occur finally.
> Below is the error tracks:
> 2009-05-13 23:26:13,892 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:18,752 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:23,611 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:28,470 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:33,345 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:38,205 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:43,080 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:47,970 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:52,830 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:57,673 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:02,548 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:07,423 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:13,220 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:18,095 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:22,955 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:27,814 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:32,689 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:37,564 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:42,439 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.springsource.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
|
From: Lieven D. (JIRA) <no...@sp...> - 2009-09-21 09:59:58
|
[ https://jira.springsource.org/browse/RCP-611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46845#action_46845 ]
Lieven Doclo commented on RCP-611:
----------------------------------
just got to that conclusion too...
> "OutOfMemoryError" exception occurs after the popup menu has been shown repeatedly
> ----------------------------------------------------------------------------------
>
> Key: RCP-611
> URL: https://jira.springsource.org/browse/RCP-611
> Project: Spring Rich Client Project
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.1.0
> Environment: JRE: Sun Microsystems Inc., 1.6.0_07
> Operating System: Windows XP x86 5.1
> Reporter: yangqinghe
> Assignee: Lieven Doclo
> Attachments: jmap.txt
>
>
> There is a simple implement for showing popup menu.Below is the source codes
> @Override
> public void mouseReleased(MouseEvent e) {
> if (e.isPopupTrigger()) {
> JPopupMenu popupMenu = commandGroup.createPopupMenu();\\ commandGroup is a CommandGroup instance if spring rich client
> popupMenu.show(table, e.getPoint().x, e.getPoint().y);
> }
> }
> If that popup menu has been shown repeatedly in our app, the "OutOfMemoryError" exception will occur finally.
> Below is the error tracks:
> 2009-05-13 23:26:13,892 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:18,752 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:23,611 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:28,470 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:33,345 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:38,205 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:43,080 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:47,970 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:52,830 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:57,673 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:02,548 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:07,423 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:13,220 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:18,095 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:22,955 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:27,814 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:32,689 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:37,564 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:42,439 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.springsource.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
|
From: Lieven D. (JIRA) <no...@sp...> - 2009-09-21 10:05:04
|
[ https://jira.springsource.org/browse/RCP-611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46846#action_46846 ]
Lieven Doclo commented on RCP-611:
----------------------------------
can you create a test case for this problem where you can replicate this?
> "OutOfMemoryError" exception occurs after the popup menu has been shown repeatedly
> ----------------------------------------------------------------------------------
>
> Key: RCP-611
> URL: https://jira.springsource.org/browse/RCP-611
> Project: Spring Rich Client Project
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.1.0
> Environment: JRE: Sun Microsystems Inc., 1.6.0_07
> Operating System: Windows XP x86 5.1
> Reporter: yangqinghe
> Assignee: Lieven Doclo
> Attachments: jmap.txt
>
>
> There is a simple implement for showing popup menu.Below is the source codes
> @Override
> public void mouseReleased(MouseEvent e) {
> if (e.isPopupTrigger()) {
> JPopupMenu popupMenu = commandGroup.createPopupMenu();\\ commandGroup is a CommandGroup instance if spring rich client
> popupMenu.show(table, e.getPoint().x, e.getPoint().y);
> }
> }
> If that popup menu has been shown repeatedly in our app, the "OutOfMemoryError" exception will occur finally.
> Below is the error tracks:
> 2009-05-13 23:26:13,892 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:18,752 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:23,611 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:28,470 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:33,345 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:38,205 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:43,080 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:47,970 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:52,830 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:57,673 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:02,548 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:07,423 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:13,220 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:18,095 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:22,955 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:27,814 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:32,689 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:37,564 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:42,439 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.springsource.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
|
From: yangqinghe (JIRA) <no...@sp...> - 2009-09-21 10:37:02
|
[ https://jira.springsource.org/browse/RCP-611?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
yangqinghe updated RCP-611:
---------------------------
Attachment: popup.jpg
> "OutOfMemoryError" exception occurs after the popup menu has been shown repeatedly
> ----------------------------------------------------------------------------------
>
> Key: RCP-611
> URL: https://jira.springsource.org/browse/RCP-611
> Project: Spring Rich Client Project
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.1.0
> Environment: JRE: Sun Microsystems Inc., 1.6.0_07
> Operating System: Windows XP x86 5.1
> Reporter: yangqinghe
> Assignee: Lieven Doclo
> Attachments: jmap.txt, popup.jpg
>
>
> There is a simple implement for showing popup menu.Below is the source codes
> @Override
> public void mouseReleased(MouseEvent e) {
> if (e.isPopupTrigger()) {
> JPopupMenu popupMenu = commandGroup.createPopupMenu();\\ commandGroup is a CommandGroup instance if spring rich client
> popupMenu.show(table, e.getPoint().x, e.getPoint().y);
> }
> }
> If that popup menu has been shown repeatedly in our app, the "OutOfMemoryError" exception will occur finally.
> Below is the error tracks:
> 2009-05-13 23:26:13,892 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:18,752 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:23,611 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:28,470 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:33,345 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:38,205 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:43,080 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:47,970 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:52,830 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:57,673 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:02,548 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:07,423 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:13,220 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:18,095 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:22,955 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:27,814 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:32,689 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:37,564 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:42,439 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.springsource.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
|
From: yangqinghe (JIRA) <no...@sp...> - 2009-09-21 10:39:03
|
[ https://jira.springsource.org/browse/RCP-611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46847#action_46847 ]
yangqinghe commented on RCP-611:
--------------------------------
OK,uses the demo app PetClinic of spring rich client maybe can replicate this bug.
1 Run the petclinic demo in "Standalone" model(launch org.springframework.richclient.samples.petclinic.PetClinicStandalone).
2 After the login dialog appeared,just click "cancel" button.
3 Right click the owner and pet tree to show popup menu(see popup.jpg).
4 Repeat step 3 continuously.
> "OutOfMemoryError" exception occurs after the popup menu has been shown repeatedly
> ----------------------------------------------------------------------------------
>
> Key: RCP-611
> URL: https://jira.springsource.org/browse/RCP-611
> Project: Spring Rich Client Project
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.1.0
> Environment: JRE: Sun Microsystems Inc., 1.6.0_07
> Operating System: Windows XP x86 5.1
> Reporter: yangqinghe
> Assignee: Lieven Doclo
> Attachments: jmap.txt, popup.jpg
>
>
> There is a simple implement for showing popup menu.Below is the source codes
> @Override
> public void mouseReleased(MouseEvent e) {
> if (e.isPopupTrigger()) {
> JPopupMenu popupMenu = commandGroup.createPopupMenu();\\ commandGroup is a CommandGroup instance if spring rich client
> popupMenu.show(table, e.getPoint().x, e.getPoint().y);
> }
> }
> If that popup menu has been shown repeatedly in our app, the "OutOfMemoryError" exception will occur finally.
> Below is the error tracks:
> 2009-05-13 23:26:13,892 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:18,752 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:23,611 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:28,470 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:33,345 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:38,205 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:43,080 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:47,970 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:52,830 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:57,673 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:02,548 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:07,423 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:13,220 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:18,095 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:22,955 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:27,814 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:32,689 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:37,564 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:42,439 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.springsource.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
|
From: Lieven D. (JIRA) <no...@sp...> - 2009-09-21 12:41:13
|
[ https://jira.springsource.org/browse/RCP-611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46849#action_46849 ]
Lieven Doclo commented on RCP-611:
----------------------------------
Hmm, petclinic isn't supported anymore (Spring doesn't provide the JARs anymore). I'll see if I can whip up a testcase.
> "OutOfMemoryError" exception occurs after the popup menu has been shown repeatedly
> ----------------------------------------------------------------------------------
>
> Key: RCP-611
> URL: https://jira.springsource.org/browse/RCP-611
> Project: Spring Rich Client Project
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.1.0
> Environment: JRE: Sun Microsystems Inc., 1.6.0_07
> Operating System: Windows XP x86 5.1
> Reporter: yangqinghe
> Assignee: Lieven Doclo
> Attachments: jmap.txt, popup.jpg
>
>
> There is a simple implement for showing popup menu.Below is the source codes
> @Override
> public void mouseReleased(MouseEvent e) {
> if (e.isPopupTrigger()) {
> JPopupMenu popupMenu = commandGroup.createPopupMenu();\\ commandGroup is a CommandGroup instance if spring rich client
> popupMenu.show(table, e.getPoint().x, e.getPoint().y);
> }
> }
> If that popup menu has been shown repeatedly in our app, the "OutOfMemoryError" exception will occur finally.
> Below is the error tracks:
> 2009-05-13 23:26:13,892 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:18,752 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:23,611 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:28,470 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:33,345 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:38,205 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:43,080 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:47,970 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:52,830 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:57,673 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:02,548 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:07,423 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:13,220 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:18,095 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:22,955 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:27,814 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:32,689 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:37,564 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:42,439 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.springsource.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
|
From: Lieven D. (JIRA) <no...@sp...> - 2009-09-21 12:49:25
|
[ https://jira.springsource.org/browse/RCP-611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46850#action_46850 ]
Lieven Doclo commented on RCP-611:
----------------------------------
Also, recreating the popup every time you right click isn't the best option. Normally your listener will hold an instance of that popup and reuse that popup when called.
Normally, you're creating something like this:
{code}
public class MyMouseAdapter extends MouseAdapter
{
private JPopupMenu menu;
public MyMouseAdapter(CommandGroup group)
{
menu = commandGroup.createPopupMenu();
}
public void mouseReleased(MouseEvent e) {
if (e.isPopupTrigger()) {
menu.show(table, e.getPoint().x, e.getPoint().y);
}
}
}
{code}
But in any case I'll take a look at the weakhashmap issue
> "OutOfMemoryError" exception occurs after the popup menu has been shown repeatedly
> ----------------------------------------------------------------------------------
>
> Key: RCP-611
> URL: https://jira.springsource.org/browse/RCP-611
> Project: Spring Rich Client Project
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.1.0
> Environment: JRE: Sun Microsystems Inc., 1.6.0_07
> Operating System: Windows XP x86 5.1
> Reporter: yangqinghe
> Assignee: Lieven Doclo
> Attachments: jmap.txt, popup.jpg
>
>
> There is a simple implement for showing popup menu.Below is the source codes
> @Override
> public void mouseReleased(MouseEvent e) {
> if (e.isPopupTrigger()) {
> JPopupMenu popupMenu = commandGroup.createPopupMenu();\\ commandGroup is a CommandGroup instance if spring rich client
> popupMenu.show(table, e.getPoint().x, e.getPoint().y);
> }
> }
> If that popup menu has been shown repeatedly in our app, the "OutOfMemoryError" exception will occur finally.
> Below is the error tracks:
> 2009-05-13 23:26:13,892 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:18,752 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:23,611 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:28,470 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:33,345 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:38,205 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:43,080 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:47,970 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:52,830 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:26:57,673 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:02,548 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:07,423 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:13,220 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:18,095 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:22,955 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:27,814 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:32,689 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:37,564 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
> 2009-05-13 23:27:42,439 ERROR [org.springframework.richclient.application.config.ApplicationLifecycleAdvisor] Java heap space
> java.lang.OutOfMemoryError: Java heap space
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.springsource.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|