Re: [Dspace-tech] Memory isues on Java
Hi Sue Thank you for wonderful reply, I guarantee to you that I will try my best to implement this and come with positive feedback. Regards, Lewatle From: Thornton, Susan M. (LARC-B702)[LITES] [mailto:susan.m.thorn...@nasa.gov] Sent: 12 October 2011 04:35 PM To: Lewatle Phaladi; dspace-tech@lists.sourceforge.net Subject: RE: Memory isues on Java I periodically get this error and sometimes stopping and restarting your web server will at least temporarily solve this problem. What memory size are you using? We use the following and rarely see this error anymore: JAVA_OPTS=-Xms2048m -Xmx3072m -Xss512k -Dfile.encoding=UTF-8 Hope this helps. Best regards, Sue Sue Walker-Thornton (757) 864-2368 From: Lewatle Phaladi [mailto:lewatle.phal...@wits.ac.za] Sent: Wednesday, October 12, 2011 4:59 AM To: dspace-tech@lists.sourceforge.net Subject: [Dspace-tech] Memory isues on Java Dear Dspace Team I have tried increasing memory size in java configuration file but I still get this error when I want to create image thumbnails, any idea on what I can do to erase this error for good? -bash-3.00$ ./dspace filter-media Exception: Java heap space java.lang.OutOfMemoryError: Java heap space at java.awt.image.DataBufferByte.init(DataBufferByte.java:58) at java.awt.image.ComponentSampleModel.createDataBuffer(ComponentSampleModel.java:397) at java.awt.image.Raster.createWritableRaster(Raster.java:938) at javax.imageio.ImageTypeSpecifier.createBufferedImage(ImageTypeSpecifier.java:1056) at javax.imageio.ImageReader.getDestination(ImageReader.java:2879) at com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(JPEGImageReader.java:980) at com.sun.imageio.plugins.jpeg.JPEGImageReader.read(JPEGImageReader.java:948) at javax.imageio.ImageIO.read(ImageIO.java:1422) at javax.imageio.ImageIO.read(ImageIO.java:1326) at org.dspace.app.mediafilter.JPEGFilter.getDestinationStream(JPEGFilter.java:67) at org.dspace.app.mediafilter.MediaFilterManager.processBitstream(MediaFilterManager.java:737) at org.dspace.app.mediafilter.MediaFilterManager.filterBitstream(MediaFilterManager.java:561) at org.dspace.app.mediafilter.MediaFilterManager.filterItem(MediaFilterManager.java:511) at org.dspace.app.mediafilter.MediaFilterManager.applyFiltersItem(MediaFilterManager.java:479) at org.dspace.app.mediafilter.MediaFilterManager.applyFiltersAllItems(MediaFilterManager.java:414) at org.dspace.app.mediafilter.MediaFilterManager.main(MediaFilterManager.java:333) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183) -bash-3.00$ Regards, Lewatle This communication is intended for the addressee only. It is confidential. If you have received this communication in error, please notify us immediately and destroy the original message. You may not copy or disseminate this communication without the permission of the University. Only authorized signatories are competent to enter into agreements on behalf of the University and recipients are thus advised that the content of this message may not be legally binding on the University and may contain the personal views and opinions of the author, which are not necessarily the views and opinions of The University of the Witwatersrand, Johannesburg. All agreements between the University and outsiders are subject to South African Law unless the University agrees in writing to the contrary. htmlpfont face = verdana size = 0.8 color = navyThis communication is intended for the addressee only. It is confidential. If you have received this communication in error, please notify us immediately and destroy the original message. You may not copy or disseminate this communication without the permission of the University. Only authorized signatories are competent to enter into agreements on behalf of the University and recipients are thus advised that the content of this message may not be legally binding on the University and may contain the personal views and opinions of the author, which are not necessarily the views and opinions of The University of the Witwatersrand, Johannesburg. All agreements between the University and outsiders are subject to South African Law unless the University agrees in writing to the contrary./font/p/html-- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application
Re: [Dspace-tech] Memory isues on Java
Hi Alan Thanks for your positive inputs. Regards, Lewatle From: Alan Orth [mailto:alan.o...@gmail.com] Sent: 12 October 2011 04:49 PM To: dspace-tech@lists.sourceforge.net Subject: Re: [Dspace-tech] Memory isues on Java Sue, What are the specs of the machine you are running DSpace on? It's always good to compare notes... :) I find that every few months, as our capacity grows, I have to allocate a few hundred more megabytes to Tomcat. Right now Tomcat's defaults look like this for us: JAVA_OPTS=-Djava.awt.headless=true -Xmx768m -Xms768m -XX:MaxPermSize=256m Our machine is only 32 bit, and only has 2 gigs of RAM, so I'm starting to plan for a migration soon. On a semi-related note, I'll also plan to move to a 64-bit OS and possibly a multi-core system. Thanks, Alan On 10/12/2011 05:35 PM, Thornton, Susan M. (LARC-B702)[LITES] wrote: I periodically get this error and sometimes stopping and restarting your web server will at least temporarily solve this problem. What memory size are you using? We use the following and rarely see this error anymore: JAVA_OPTS=-Xms2048m -Xmx3072m -Xss512k -Dfile.encoding=UTF-8 Hope this helps. Best regards, Sue Sue Walker-Thornton (757) 864-2368 From: Lewatle Phaladi [mailto:lewatle.phal...@wits.ac.za] Sent: Wednesday, October 12, 2011 4:59 AM To: dspace-tech@lists.sourceforge.net Subject: [Dspace-tech] Memory isues on Java Dear Dspace Team I have tried increasing memory size in java configuration file but I still get this error when I want to create image thumbnails, any idea on what I can do to erase this error for good? -bash-3.00$ ./dspace filter-media Exception: Java heap space java.lang.OutOfMemoryError: Java heap space at java.awt.image.DataBufferByte.init(DataBufferByte.java:58) at java.awt.image.ComponentSampleModel.createDataBuffer(ComponentSampleMode l.java:397) at java.awt.image.Raster.createWritableRaster(Raster.java:938) at javax.imageio.ImageTypeSpecifier.createBufferedImage(ImageTypeSpecifier. java:1056) at javax.imageio.ImageReader.getDestination(ImageReader.java:2879) at com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(JPEGImageReade r.java:980) at com.sun.imageio.plugins.jpeg.JPEGImageReader.read(JPEGImageReader.java:9 48) at javax.imageio.ImageIO.read(ImageIO.java:1422) at javax.imageio.ImageIO.read(ImageIO.java:1326) at org.dspace.app.mediafilter.JPEGFilter.getDestinationStream(JPEGFilter.ja va:67) at org.dspace.app.mediafilter.MediaFilterManager.processBitstream(MediaFilt erManager.java:737) at org.dspace.app.mediafilter.MediaFilterManager.filterBitstream(MediaFilte rManager.java:561) at org.dspace.app.mediafilter.MediaFilterManager.filterItem(MediaFilterMana ger.java:511) at org.dspace.app.mediafilter.MediaFilterManager.applyFiltersItem(MediaFilt erManager.java:479) at org.dspace.app.mediafilter.MediaFilterManager.applyFiltersAllItems(Media FilterManager.java:414) at org.dspace.app.mediafilter.MediaFilterManager.main(MediaFilterManager.ja va:333) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183) -bash-3.00$ Regards, Lewatle This communication is intended for the addressee only. It is confidential. If you have received this communication in error, please notify us immediately and destroy the original message. You may not copy or disseminate this communication without the permission of the University. Only authorized signatories are competent to enter into agreements on behalf of the University and recipients are thus advised that the content of this message may not be legally binding on the University and may contain the personal views and opinions of the author, which are not necessarily the views and opinions of The University of the Witwatersrand, Johannesburg. All agreements between the University and outsiders are subject to South African Law unless the University agrees in writing to the contrary. -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech -- Alan Orth alan.o...@gmail.com http
[Dspace-tech] Memory isues on Java
Dear Dspace Team I have tried increasing memory size in java configuration file but I still get this error when I want to create image thumbnails, any idea on what I can do to erase this error for good? -bash-3.00$ ./dspace filter-media Exception: Java heap space java.lang.OutOfMemoryError: Java heap space at java.awt.image.DataBufferByte.init(DataBufferByte.java:58) at java.awt.image.ComponentSampleModel.createDataBuffer(ComponentSampleMode l.java:397) at java.awt.image.Raster.createWritableRaster(Raster.java:938) at javax.imageio.ImageTypeSpecifier.createBufferedImage(ImageTypeSpecifier. java:1056) at javax.imageio.ImageReader.getDestination(ImageReader.java:2879) at com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(JPEGImageReade r.java:980) at com.sun.imageio.plugins.jpeg.JPEGImageReader.read(JPEGImageReader.java:9 48) at javax.imageio.ImageIO.read(ImageIO.java:1422) at javax.imageio.ImageIO.read(ImageIO.java:1326) at org.dspace.app.mediafilter.JPEGFilter.getDestinationStream(JPEGFilter.ja va:67) at org.dspace.app.mediafilter.MediaFilterManager.processBitstream(MediaFilt erManager.java:737) at org.dspace.app.mediafilter.MediaFilterManager.filterBitstream(MediaFilte rManager.java:561) at org.dspace.app.mediafilter.MediaFilterManager.filterItem(MediaFilterMana ger.java:511) at org.dspace.app.mediafilter.MediaFilterManager.applyFiltersItem(MediaFilt erManager.java:479) at org.dspace.app.mediafilter.MediaFilterManager.applyFiltersAllItems(Media FilterManager.java:414) at org.dspace.app.mediafilter.MediaFilterManager.main(MediaFilterManager.ja va:333) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183) -bash-3.00$ Regards, Lewatle htmlpfont face = verdana size = 0.8 color = navyThis communication is intended for the addressee only. It is confidential. If you have received this communication in error, please notify us immediately and destroy the original message. You may not copy or disseminate this communication without the permission of the University. Only authorized signatories are competent to enter into agreements on behalf of the University and recipients are thus advised that the content of this message may not be legally binding on the University and may contain the personal views and opinions of the author, which are not necessarily the views and opinions of The University of the Witwatersrand, Johannesburg. All agreements between the University and outsiders are subject to South African Law unless the University agrees in writing to the contrary./font/p/html -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Memory isues on Java
I periodically get this error and sometimes stopping and restarting your web server will at least temporarily solve this problem. What memory size are you using? We use the following and rarely see this error anymore: JAVA_OPTS=-Xms2048m -Xmx3072m -Xss512k -Dfile.encoding=UTF-8 Hope this helps. Best regards, Sue Sue Walker-Thornton (757) 864-2368 From: Lewatle Phaladi [mailto:lewatle.phal...@wits.ac.za] Sent: Wednesday, October 12, 2011 4:59 AM To: dspace-tech@lists.sourceforge.net Subject: [Dspace-tech] Memory isues on Java Dear Dspace Team I have tried increasing memory size in java configuration file but I still get this error when I want to create image thumbnails, any idea on what I can do to erase this error for good? -bash-3.00$ ./dspace filter-media Exception: Java heap space java.lang.OutOfMemoryError: Java heap space at java.awt.image.DataBufferByte.init(DataBufferByte.java:58) at java.awt.image.ComponentSampleModel.createDataBuffer(ComponentSampleModel.java:397) at java.awt.image.Raster.createWritableRaster(Raster.java:938) at javax.imageio.ImageTypeSpecifier.createBufferedImage(ImageTypeSpecifier.java:1056) at javax.imageio.ImageReader.getDestination(ImageReader.java:2879) at com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(JPEGImageReader.java:980) at com.sun.imageio.plugins.jpeg.JPEGImageReader.read(JPEGImageReader.java:948) at javax.imageio.ImageIO.read(ImageIO.java:1422) at javax.imageio.ImageIO.read(ImageIO.java:1326) at org.dspace.app.mediafilter.JPEGFilter.getDestinationStream(JPEGFilter.java:67) at org.dspace.app.mediafilter.MediaFilterManager.processBitstream(MediaFilterManager.java:737) at org.dspace.app.mediafilter.MediaFilterManager.filterBitstream(MediaFilterManager.java:561) at org.dspace.app.mediafilter.MediaFilterManager.filterItem(MediaFilterManager.java:511) at org.dspace.app.mediafilter.MediaFilterManager.applyFiltersItem(MediaFilterManager.java:479) at org.dspace.app.mediafilter.MediaFilterManager.applyFiltersAllItems(MediaFilterManager.java:414) at org.dspace.app.mediafilter.MediaFilterManager.main(MediaFilterManager.java:333) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183) -bash-3.00$ Regards, Lewatle This communication is intended for the addressee only. It is confidential. If you have received this communication in error, please notify us immediately and destroy the original message. You may not copy or disseminate this communication without the permission of the University. Only authorized signatories are competent to enter into agreements on behalf of the University and recipients are thus advised that the content of this message may not be legally binding on the University and may contain the personal views and opinions of the author, which are not necessarily the views and opinions of The University of the Witwatersrand, Johannesburg. All agreements between the University and outsiders are subject to South African Law unless the University agrees in writing to the contrary. -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Memory isues on Java
Sue, What are the specs of the machine you are running DSpace on? It's always good to compare notes... :) I find that every few months, as our capacity grows, I have to allocate a few hundred more megabytes to Tomcat. Right now Tomcat's defaults look like this for us: JAVA_OPTS=-Djava.awt.headless=true -Xmx768m -Xms768m -XX:MaxPermSize=256m Our machine is only 32 bit, and only has 2 gigs of RAM, so I'm starting to plan for a migration soon. On a semi-related note, I'll also plan to move to a 64-bit OS and possibly a multi-core system. Thanks, Alan On 10/12/2011 05:35 PM, Thornton, Susan M. (LARC-B702)[LITES] wrote: I periodically get this error and sometimes stopping and restarting your web server will at least temporarily solve this problem. What memory size are you using? We use the following and rarely see this error anymore: JAVA_OPTS=-Xms2048m -Xmx3072m -Xss512k -Dfile.encoding=UTF-8 Hope this helps. Best regards, Sue */Sue Walker-Thornton/* */(757) 864-2368/* *From:*Lewatle Phaladi [mailto:lewatle.phal...@wits.ac.za] *Sent:* Wednesday, October 12, 2011 4:59 AM *To:* dspace-tech@lists.sourceforge.net *Subject:* [Dspace-tech] Memory isues on Java Dear Dspace Team I have tried increasing memory size in java configuration file but I still get this error when I want to create image thumbnails, any idea on what I can do to erase this error for good? -bash-3.00$ ./dspace filter-media Exception: Java heap space java.lang.OutOfMemoryError: Java heap space at java.awt.image.DataBufferByte.init(DataBufferByte.java:58) at java.awt.image.ComponentSampleModel.createDataBuffer(ComponentSampleModel.java:397) at java.awt.image.Raster.createWritableRaster(Raster.java:938) at javax.imageio.ImageTypeSpecifier.createBufferedImage(ImageTypeSpecifier.java:1056) at javax.imageio.ImageReader.getDestination(ImageReader.java:2879) at com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(JPEGImageReader.java:980) at com.sun.imageio.plugins.jpeg.JPEGImageReader.read(JPEGImageReader.java:948) at javax.imageio.ImageIO.read(ImageIO.java:1422) at javax.imageio.ImageIO.read(ImageIO.java:1326) at org.dspace.app.mediafilter.JPEGFilter.getDestinationStream(JPEGFilter.java:67) at org.dspace.app.mediafilter.MediaFilterManager.processBitstream(MediaFilterManager.java:737) at org.dspace.app.mediafilter.MediaFilterManager.filterBitstream(MediaFilterManager.java:561) at org.dspace.app.mediafilter.MediaFilterManager.filterItem(MediaFilterManager.java:511) at org.dspace.app.mediafilter.MediaFilterManager.applyFiltersItem(MediaFilterManager.java:479) at org.dspace.app.mediafilter.MediaFilterManager.applyFiltersAllItems(MediaFilterManager.java:414) at org.dspace.app.mediafilter.MediaFilterManager.main(MediaFilterManager.java:333) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183) -bash-3.00$ Regards, Lewatle This communication is intended for the addressee only. It is confidential. If you have received this communication in error, please notify us immediately and destroy the original message. You may not copy or disseminate this communication without the permission of the University. Only authorized signatories are competent to enter into agreements on behalf of the University and recipients are thus advised that the content of this message may not be legally binding on the University and may contain the personal views and opinions of the author, which are not necessarily the views and opinions of The University of the Witwatersrand, Johannesburg. All agreements between the University and outsiders are subject to South African Law unless the University agrees in writing to the contrary. -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech -- Alan Orth alan.o...@gmail.com http://alaninkenya.org http://mjanja.co.ke I have always wished for my computer to be as easy to use as my telephone; my wish has come true because I can no longer figure out how to use my telephone. -Bjarne