Yuan, Rebecca
2015-Feb-02 13:43 UTC
[R] Error: OutOfMemoryError (Java): GC overhead limit exceeded
Hello all, When I met this following error message: Error: OutOfMemoryError (Java): GC overhead limit exceeded I usually use the following options to overcome the memory limit: options(java.parameters = "-Xmx1024m") # to reduce the error message "Error: OutOfMemoryError (Java): GC overhead limit exceeded" However, this seems not working any more, is there any other way to help avoiding the memory error issue in R? Thanks very much! Cheers, Rebecca 20 ---------------------------------------------------------------------- This message, and any attachments, is for the intended r...{{dropped:5}}
Jeff Newmiller
2015-Feb-02 14:27 UTC
[R] Error: OutOfMemoryError (Java): GC overhead limit exceeded
The memory issue is in Java, not R. You can either be more parsimonious in your use of Java memory (we have no idea what you are doing with it here, so how you do that is up to you), or you can allocate more memory to Java (you may be able to guess how to do that, or read the Java documentation on the X parameter). --------------------------------------------------------------------------- Jeff Newmiller The ..... ..... Go Live... DCN:<jdnewmil at dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...1k --------------------------------------------------------------------------- Sent from my phone. Please excuse my brevity. On February 2, 2015 5:43:50 AM PST, "Yuan, Rebecca" <rebecca.yuan at bankofamerica.com> wrote:>Hello all, > >When I met this following error message: > >Error: OutOfMemoryError (Java): GC overhead limit exceeded > >I usually use the following options to overcome the memory limit: > >options(java.parameters = "-Xmx1024m") # to reduce the error message >"Error: OutOfMemoryError (Java): GC overhead limit exceeded" > >However, this seems not working any more, is there any other way to >help avoiding the memory error issue in R? > >Thanks very much! > >Cheers, > >Rebecca > > > >20 > >---------------------------------------------------------------------- >This message, and any attachments, is for the intended >r...{{dropped:5}} > >______________________________________________ >R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide >http://www.R-project.org/posting-guide.html >and provide commented, minimal, self-contained, reproducible code.
jim holtman
2015-Feb-02 15:20 UTC
[R] Error: OutOfMemoryError (Java): GC overhead limit exceeded
On the off-chance, are you using XLConnect or xlsx packages that are using Java to access the spreadsheets? If it is XLConnect, are you access the '.xlsx' style workbooks? If so, can you try using '.xls' workbooks? This is a problem that I have had; the '.xlsx' workbooks take a lot more resources (CPU and memory) to process. A little more information like what your sessionInfo is would help a lot in responding to your problem. Jim Holtman Data Munger Guru What is the problem that you are trying to solve? Tell me what you want to do, not how you want to do it. On Mon, Feb 2, 2015 at 9:27 AM, Jeff Newmiller <jdnewmil at dcn.davis.ca.us> wrote:> The memory issue is in Java, not R. > > You can either be more parsimonious in your use of Java memory (we have no > idea what you are doing with it here, so how you do that is up to you), or > you can allocate more memory to Java (you may be able to guess how to do > that, or read the Java documentation on the X parameter). > --------------------------------------------------------------------------- > Jeff Newmiller The ..... ..... Go Live... > DCN:<jdnewmil at dcn.davis.ca.us> Basics: ##.#. ##.#. Live > Go... > Live: OO#.. Dead: OO#.. Playing > Research Engineer (Solar/Batteries O.O#. #.O#. with > /Software/Embedded Controllers) .OO#. .OO#. rocks...1k > --------------------------------------------------------------------------- > Sent from my phone. Please excuse my brevity. > > On February 2, 2015 5:43:50 AM PST, "Yuan, Rebecca" < > rebecca.yuan at bankofamerica.com> wrote: > >Hello all, > > > >When I met this following error message: > > > >Error: OutOfMemoryError (Java): GC overhead limit exceeded > > > >I usually use the following options to overcome the memory limit: > > > >options(java.parameters = "-Xmx1024m") # to reduce the error message > >"Error: OutOfMemoryError (Java): GC overhead limit exceeded" > > > >However, this seems not working any more, is there any other way to > >help avoiding the memory error issue in R? > > > >Thanks very much! > > > >Cheers, > > > >Rebecca > > > > > > > >20 > > > >---------------------------------------------------------------------- > >This message, and any attachments, is for the intended > >r...{{dropped:5}} > > > >______________________________________________ > >R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > >https://stat.ethz.ch/mailman/listinfo/r-help > >PLEASE do read the posting guide > >http://www.R-project.org/posting-guide.html > >and provide commented, minimal, self-contained, reproducible code. > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]