Skip to content

Commit 5db2232

Browse files
committed
Unify the OOME messages, replace NetBeans IDE by VisualVM.
1 parent 6c6cc7c commit 5db2232

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

visualvm/branding/modules/org-netbeans-modules-profiler.jar/org/netbeans/modules/profiler/heapwalk/model/Bundle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@
2323
# questions.
2424

2525

26-
BrowserUtils_OutOfMemoryMsg=<html><b>Out of memory in HeapWalker</b><br><br>To avoid this error, increase the -Xmx value<br>in the etc/visualvm.conf file in VisualVM installation directory.</html>
26+
BrowserUtils_OutOfMemoryMsg=<html><b>Out of memory in HeapWalker</b><br><br>To avoid this error please increase the -Xmx value<br>in the etc/visualvm.conf file in VisualVM directory.</html>
2727

visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/Bundle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ ProfilerClient_CannotOpenServerTempFileMsg=Cannot open temporary communication f
4545
ProfilerClient_PerformingInstrumentationString=Performing instrumentation, please wait...
4646
ProfilerClient_InvalidCodeRegionMsg=Invalid location was specified for code region instrumentation.\nInstrumentation cannot be performed.
4747
ProfilerClient_ClassNotFoundMsg=Could not find class {0} on the class path.\nInstrumentation cannot be performed.
48-
ProfilerClient_OutOfMemoryMsg=Too much data collected - the profiler ran out of memory.\nCollected profiling data has been deleted and profiling resumed.\nTo avoid this error in future, increase the -Xmx value\n in the etc/netbeans.conf file in NetBeans installation\nor lower the amount of details in profiling settings.
48+
ProfilerClient_OutOfMemoryMsg=Too much data collected - the profiler ran out of memory.\nCollected profiling data has been deleted and profiling resumed.\nTo avoid this error please increase the -Xmx value\nin the etc/visualvm.conf file in VisualVM directory\nor lower the amount of details in profiling settings.
4949
ProfilerClient_IncorrectAgentVersionMsg=Warning\: The profiler agent you are connecting to is a different version than this profiler.\nYou may encounter errors and unexpected behavior.
5050
ProfilerClient_ErrorGettingCalibrationDataMsg=Error when retrieving saved calibration data for target JVM\:\n{0}
5151
ProfilerClient_MustCalibrateFirstMsg=Since you did not run the Profiler on this machine or target JVM before,\ndeleted the saved calibration data, or this data is corrupt, profiling will STOP now.\n\nYou have to run the calibration command for your target JVM\nbefore running the Profiler with it again.\nThe obtained calibration data will be saved and re-used\non subsequent runs, so you will not see this message anymore.\n\nTo perform the calibration, use\n\"Tools | Options | Java | Profiler | General | Manage calibration data\".\n\n

visualvm/libs.profiler/profiler.heapwalker/src/org/graalvm/visualvm/lib/profiler/heapwalk/details/api/ExportAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
"ExportAction_ExportDialogBINFilter=Binary File (*.bin)",
8181
"ExportAction_ExportingViewMsg=Exporting...",
8282
"ExportAction_NoViewMsg=No view to export.",
83-
"ExportAction_OomeExportingMsg=<html><b>Not enough memory to save the file.</b><br><br>To avoid this error increase the -Xmx<br>value in the etc/netbeans.conf file in NetBeans IDE installation.</html>",
83+
"ExportAction_OomeExportingMsg=<html><b>Not enough memory to save the file.</b><br><br>To avoid this error please increase the -Xmx value<br>in the etc/visualvm.conf file in VisualVM directory.</html>",
8484
"ExportAction_IOException_Exporting_Msg=<html>IOException occurred during export, see IDE log for details</html>",
8585
"ExportAction_CannotWriteFileMsg=Failed to export File. Reason: {0}."})
8686
public final class ExportAction extends AbstractAction {

visualvm/libs.profiler/profiler.heapwalker/src/org/graalvm/visualvm/lib/profiler/heapwalk/model/BrowserUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
* @author Jiri Sedlacek
7373
*/
7474
@NbBundle.Messages({
75-
"BrowserUtils_OutOfMemoryMsg=<html><b>Out of memory in HeapWalker</b><br><br>To avoid this error, increase the -Xmx value<br>in the etc/netbeans.conf file in NetBeans IDE installation directory.</html>",
75+
"BrowserUtils_OutOfMemoryMsg=<html><b>Out of memory in HeapWalker</b><br><br>To avoid this error please increase the -Xmx value<br>in the etc/visualvm.conf file in VisualVM directory.</html>",
7676
"BrowserUtils_TruncatedMsg=...<truncated>...",
7777
"BrowserUtils_PathCopiedToClipboard=Path from root copied to the clipboard."
7878
})

visualvm/libs.profiler/profiler/src/org/graalvm/visualvm/lib/profiler/LoadedSnapshot.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"LoadedSnapshot_SnapshotFileShortMsg=File too short",
8585
"LoadedSnapshot_SnapshotFileCorrupted=Snapshot file corrupted",
8686
"LoadedSnapshot_SnapshotFileCorruptedReason=Snapshot file is corrupted: {0}",
87-
"LoadedSnapshot_OutOfMemoryLoadingMsg=Not enough memory to load snapshot.\n\nTo avoid this error, increase the -Xmx value\nin the etc/netbeans.conf file in NetBeans IDE installation and restart the IDE."
87+
"LoadedSnapshot_OutOfMemoryLoadingMsg=Not enough memory to load snapshot.\n\nTo avoid this error please increase the -Xmx value\nin the etc/visualvm.conf file in VisualVM directory."
8888
})
8989
public class LoadedSnapshot {
9090
//~ Static fields/initializers -----------------------------------------------------------------------------------------------

visualvm/libs.profiler/profiler/src/org/graalvm/visualvm/lib/profiler/ProfilingMonitor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
public final class ProfilingMonitor {
6767

6868
@NbBundle.Messages({
69-
"ProfilingMonitor_OomeMsg=<html><b>Not enough memory to store profiling data.</b><br><br>To avoid this error, increase the -Xmx value<br>in the etc/netbeans.conf file in NetBeans IDE installation.</html>"
69+
"ProfilingMonitor_OomeMsg=<html><b>Not enough memory to store profiling data.</b><br><br>To avoid this error please increase the -Xmx value<br>in the etc/visualvm.conf file in VisualVM directory.</html>"
7070
})
7171
//~ Inner Classes ------------------------------------------------------------------------------------------------------------
7272

visualvm/libs.profiler/profiler/src/org/graalvm/visualvm/lib/profiler/ResultsManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
"ResultsManager_SnapshotCreateFailedMsg=Failed to create snapshot file: {0}",
107107
"ResultsManager_ProfiledAppTerminatedMsg=Failed to obtain results snapshot. The profiled application terminated.",
108108
"ResultsManager_DataNotAvailableMsg=Failed to obtain results snapshot. Data is not available yet.",
109-
"ResultsManager_OutOfMemoryMsg=Too much data collected - the profiler ran out of memory.\n\nCollected profiling data has been deleted and profiling resumed.\nTo avoid this error, increase the -Xmx value\nin the etc/netbeans.conf file in NetBeans IDE installation\nor decrease the amount of detail in profiling settings.",
109+
"ResultsManager_OutOfMemoryMsg=Too much data collected - the profiler ran out of memory.\n\nCollected profiling data has been deleted and profiling resumed.\nTo avoid this error please increase the -Xmx value\nin the etc/visualvm.conf file in VisualVM directory\nor decrease the amount of detail in profiling settings.",
110110
"ResultsManager_SnapshotDeleteFailedMsg=Failed to delete the snapshot file: {0}",
111111
"ResultsManager_CantFindSnapshotLocationMsg=Cannot find default location for snapshot in project: {0}",
112112
"ResultsManager_SnapshotCreateInProjectFailedMsg=Failed to create snapshot file in project: {0}",
@@ -123,7 +123,7 @@
123123
"ResultsManager_SelectFileOrDirDialogCaption=Select File or Directory",
124124
"ResultsManager_ProfilerSnapshotFileFilter=Profiler Snapshot File (*.{0})",
125125
"ResultsManager_ProfilerHeapdumpFileFilter=Heap Dump File (*.{0})",
126-
"ResultsManager_OutOfMemorySavingMsg=<html><b>Not enough memory to save the snapshot.</b><br><br>To avoid this error, increase the -Xmx value<br>in the etc/netbeans.conf file in NetBeans IDE installation.</html>",
126+
"ResultsManager_OutOfMemorySavingMsg=<html><b>Not enough memory to save the snapshot.</b><br><br>To avoid this error please increase the -Xmx value<br>in the etc/visualvm.conf file in VisualVM directory.</html>",
127127
"ResultsManager_CannotCompareSnapshotsMsg=<html><b>Cannot compare snapshots:</b><br><br> {0}<br> {1}<br><br>Make sure that both snaphots are the same type.</html>",
128128
"ResultsManager_DirectoryDoesntExistCaption=Selected Directory Does Not Exist",
129129
"ResultsManager_DirectoryDoesntExistMsg=The directory you have selected does not exist.\nDo you want to create the directory?",

0 commit comments

Comments
 (0)