This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 252701

Summary: OutOfMemoryError: Many strings stored in cache for NbPreferences$UserPreferences
Product: platform Reporter: Exceptions Reporter <exceptions_reporter>
Component: Options&SettingsAssignee: Theofanis Oikonomou <theofanis>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 217634
Attachments: stacktrace

Description Exceptions Reporter 2015-05-30 18:38:17 UTC
This bug was originally marked as duplicate of bug 242897, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.45-b02, Java(TM) SE Runtime Environment, 1.8.0_45-b15
OS: Windows 8

User Comments:
GUEST: Estava editando uns scripts em php OO, minimizei IDE para consultar a documentacao do php ao voltar o mesmo estava Travado. E consulmo memoria est
Comment 1 Exceptions Reporter 2015-05-30 18:38:19 UTC
Created attachment 153970 [details]
stacktrace
Comment 2 Jaroslav Havlin 2015-08-05 12:29:57 UTC
An NbPreferences$UserPreferences object holds field cachedKeyValues (HashMap) which contains key "lastIndexUpdate" with associated ArrayList with over 10 million items.

(Key "lastIndexUpdate" is used in o.n.m.maven.indexer.api.RepositoryPreferences.)

Reassigning to platform/Options&Settings. Fanis, please evaluate. Thanks.
Comment 3 Theofanis Oikonomou 2015-09-11 13:07:02 UTC
This should be fixed by http://hg.netbeans.org/main-silver/rev/6ad45f1e33cb. Please try a latest build and reopen if it still happens for you. Thank you