Re: memory allocation for JVM - "file too big to open safely" [netbeans] [java]

2020-12-21 Thread Neil C Smith
On Mon, 21 Dec 2020 at 12:51, Oliver Rettig wrote: > It is only a warning that the file maybe is too big. There are lots of > configuration possibilities available for experiences users. There is already https://bits.netbeans.org/12.2/javadoc/properties.html although this is not listed there

Re: memory allocation for JVM - "file too big to open safely" [netbeans] [java]

2020-12-21 Thread Oliver Rettig
Hi, It is only a warning that the file maybe is too big. There are lots of configuration possibilities available for experiences users. Maybe a central page in the wiki which collects all the settings/properties would be fine. Is there such a collection somewhere? Where can it place in the

Re: memory allocation for JVM - "file too big to open safely" [netbeans] [java]

2020-12-21 Thread Som Lima
I think the software program sucks if the software did not advise user in the error message to adjust the parameter. J-Dorg.openide.text.big.file.size=10. On Mon, 21 Dec 2020, 08:34 Oliver Rettig, wrote: > Hi all, > > > > Neil is completely right - thanks for the hint. > > > > The

Re: memory allocation for JVM - "file too big to open safely" [netbeans] [java]

2020-12-21 Thread Oliver Rettig
Hi all, Neil is completely right - thanks for the hint. The warning is opened if a configurable maximum file size is reached. The default value for this is 1MB and can be increased by by adding system property, e.g. -J-Dorg.openide.text.big.file.size=10 I will think about to use this

Re: memory allocation for JVM - "file too big to open safely" [netbeans] [java]

2020-12-20 Thread Neil C Smith
On Sun, 20 Dec 2020 at 16:25, Oliver Rettig wrote: > I remember also got such messages in the past during opening big text files > in my netbeans-platform applications and with increasing heap-size I cauld > not get rid of the message. In my cases after closing the dialog all works > fine. So

Re: memory allocation for JVM - "file too big to open safely" [netbeans] [java]

2020-12-20 Thread Som Lima
Looking at this page https://stackoverflow.com/questions/13685402/how-to-assign-more-than-1gb-to-netbeans-jvm I suggest setting this parameter to see if you get the corresponding error message. when I set -J-Xmx3024m I obtain these messages: /opt/netbeans-7.2/bin/netbeans Error occurred during

Re: memory allocation for JVM - "file too big to open safely" [netbeans] [java]

2020-12-20 Thread Oliver Rettig
Hi, I remember also got such messages in the past during opening big text files in my netbeans- platform applications and with increasing heap-size I cauld not get rid of the message. In my cases after closing the dialog all works fine. So I dont have a closer look at this. Maybe there is

Re: memory allocation for JVM - "file too big to open safely" [netbeans] [java]

2020-12-20 Thread Peter Hull
On Sat, 19 Dec 2020 at 22:42, Christopher C. Lanz wrote: > > I have changed the netbeans.conf and app.conf files to include > > -J-Xms512m -J-Xmx2048m As far as I know, that's the right way to increase Netbeans heap. Maybe check in the IDE log (just after the line that starts "Input

memory allocation for JVM - "file too big to open safely" [netbeans] [java]

2020-12-19 Thread Christopher C. Lanz
Hello, I am running NetBeans 12 in Ubuntu 14.04. When trying to load a file of text, I get the message "It seems that the file is too big to open safely...etc...". I have changed the netbeans.conf and app.conf files to include -J-Xms512m -J-Xmx2048m but I still get the error. I want to try