Re: [xwiki-users] Import of XAR: Java Heap Space Out Of Memory Exception in 1.2

2009-10-12 Thread walido


Hi,

aie,aie,..
that's a real bad news for me, because i was counting on that
but is there a solution to change the configuration of hsql, to put tables
in files for example directly on disk not on memory or to extend the size of
the memory allowed to him ( i can get a 4Go of RAM for my PC)
or if i have to switch to another database is there a solution to migrate my
hsql database with its contents to the new database mysql.
thanks so much for helping me it's so important for the job
thank you
-- 
View this message in context: 
http://n2.nabble.com/Re-Import-of-XAR-Java-Heap-Space-Out-Of-Memory-Exception-in-1-2-tp508065p3806725.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Import of XAR: Java Heap Space Out Of Memory Exception in 1.2

2009-10-09 Thread walido


HI,

I have almost the same problem i'm using HSQL as database, i have edited my
start_xwiki.bat and now i have : set JAVA_OPTS=-Xmx1024m

but i still have this problem of : Java Heap Space Out Of Memory Exception
!, actionally i want to upload a lot of files up there (1,03 Go) i don't
know if it's possible 
and i can't find max_upload_size in XWiki preferences

thanks for helping me i'm really stucked on this one




-- 
View this message in context: 
http://n2.nabble.com/Re-Import-of-XAR-Java-Heap-Space-Out-Of-Memory-Exception-in-1-2-tp508065p3795695.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Import of XAR: Java Heap Space Out Of Memory Exception in 1.2

2009-10-09 Thread Sergiu Dumitriu
On Fri, Oct 9, 2009 at 18:14, walido walid.kharro...@hraccess.com wrote:


 HI,

 I have almost the same problem i'm using HSQL as database, i have edited my
 start_xwiki.bat and now i have : set JAVA_OPTS=-Xmx1024m

 but i still have this problem of : Java Heap Space Out Of Memory Exception
 !, actionally i want to upload a lot of files up there (1,03 Go) i don't
 know if it's possible

You definitely can't do that. The default configuration for HSQL is to
use in-memory tables. All that data can't fit in the memory you've
configured. You'd have to switch to a different database.

 and i can't find max_upload_size in XWiki preferences

 thanks for helping me i'm really stucked on this one


-- 
http://purl.org/net/sergiu
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Import of XAR: Java Heap Space Out Of Memory Exception in 1.2

2008-07-21 Thread Nishiii

Hi Antonio

To increase the Heap memory did u just add an environment variable
CATALINE_HOME or did u edit the catalina.bat file in the tomcat bin folder

Please let me know because i am getting the same error but when trying to
attach a file.

2008-07-21 13:57:25,890
[http://localhost:8080/xwiki/bin/upload/My+Space/WebHome
] [http8080-Processor25] ERROR lucene.IndexUpdater - invalid
paramet
ers given to add: My Space.WebHome, null,
[EMAIL PROTECTED],
 [EMAIL PROTECTED], links=[Main.WebHome,
Main.
AllDocs, Main.Dashboard, Blog.WebHome, Main.EventCalendar, Photos.WebHome,
Sandb
ox.WebHome, Main.Tags, XWiki.WebHome],
grouplist={xwiki:XWiki.Admin=[xwiki:XWiki
.XWikiAdminGroup, xwiki:XWiki.XWikiAllGroup],
xwiki:xwiki:XWiki.Admin=[xwiki:XWi
ki.XWikiAdminGroup, xwiki:XWiki.XWikiAllGroup]},
fileuploadplugin=com.xpn.xwiki.
[EMAIL PROTECTED],
com.xpn.xwiki.plugin.skinx.CssSkinExt
ensionPlugin=[], [EMAIL PROTECTED], tdoc=My
Space.W
ebHome, message=javaheapspace,
org.xwiki.component.manager.ComponentManager=org.
[EMAIL PROTECTED], ajax=false,
mainxwiki=xwiki,
 skin=XWiki.DefaultSkin, fileuploadlist=[name=null,
StoreLocation=C:\TOMCAT_HOME
\jakarta-tomcat-5.0.19\temp\upload__69e6a6f7_11b46abc595__8000_0008.tmp,
siz
e=64bytes, isFormField=true, FieldName=xredirect, name=null,
StoreLocation=C:\TO
MCAT_HOME\jakarta-tomcat-5.0.19\temp\upload__69e6a6f7_11b46abc595__8000_0009
.tmp, size=15bytes, isFormField=true, FieldName=filename, name=C:\Documents
and
Settings\vashwath\Desktop\Prasad\Sheera Photo.JPG,
StoreLocation=C:\TOMCAT_HOME\
jakarta-tomcat-5.0.19\temp\upload__69e6a6f7_11b46abc595__8000_0010.tmp,
size
=2821051bytes, isFormField=false, FieldName=filepath, name=null,
StoreLocation=C
:\TOMCAT_HOME\jakarta-tomcat-5.0.19\temp\upload__69e6a6f7_11b46abc595__8000_
0011.tmp, size=16bytes, isFormField=true, FieldName=attachment], locale=en,
base
skin=toucan, com.xpn.xwiki.plugin.skinx.JsSkinExtensionPlugin=[], doc=My
Space.W
ebHome}


Thanks,
Vinutha


Hi Antonio,

To increase the Heap memory did u just add an environment variable
CATALINE_HOME or did u edit the catalina.bat file in the tomcat bin folder

Please let me know because i am getting the same error but when trying to
attach a file.

2008-07-21 13:57:25,890
[http://localhost:8080/xwiki/bin/upload/My+Space/WebHome
] [http8080-Processor25] ERROR lucene.IndexUpdater - invalid
paramet
ers given to add: My Space.WebHome, null,
[EMAIL PROTECTED],
 [EMAIL PROTECTED], links=[Main.WebHome,
Main.
AllDocs, Main.Dashboard, Blog.WebHome, Main.EventCalendar, Photos.WebHome,
Sandb
ox.WebHome, Main.Tags, XWiki.WebHome],
grouplist={xwiki:XWiki.Admin=[xwiki:XWiki
.XWikiAdminGroup, xwiki:XWiki.XWikiAllGroup],
xwiki:xwiki:XWiki.Admin=[xwiki:XWi
ki.XWikiAdminGroup, xwiki:XWiki.XWikiAllGroup]},
fileuploadplugin=com.xpn.xwiki.
[EMAIL PROTECTED],
com.xpn.xwiki.plugin.skinx.CssSkinExt
ensionPlugin=[], [EMAIL PROTECTED], tdoc=My
Space.W
ebHome, message=javaheapspace,
org.xwiki.component.manager.ComponentManager=org.
[EMAIL PROTECTED], ajax=false,
mainxwiki=xwiki,
 skin=XWiki.DefaultSkin, fileuploadlist=[name=null,
StoreLocation=C:\TOMCAT_HOME
\jakarta-tomcat-5.0.19\temp\upload__69e6a6f7_11b46abc595__8000_0008.tmp,
siz
e=64bytes, isFormField=true, FieldName=xredirect, name=null,
StoreLocation=C:\TO
MCAT_HOME\jakarta-tomcat-5.0.19\temp\upload__69e6a6f7_11b46abc595__8000_0009
.tmp, size=15bytes, isFormField=true, FieldName=filename, name=C:\Documents
and
Settings\vashwath\Desktop\Prasad\Sheera Photo.JPG,
StoreLocation=C:\TOMCAT_HOME\
jakarta-tomcat-5.0.19\temp\upload__69e6a6f7_11b46abc595__8000_0010.tmp,
size
=2821051bytes, isFormField=false, FieldName=filepath, name=null,
StoreLocation=C
:\TOMCAT_HOME\jakarta-tomcat-5.0.19\temp\upload__69e6a6f7_11b46abc595__8000_
0011.tmp, size=16bytes, isFormField=true, FieldName=attachment], locale=en,
base
skin=toucan, com.xpn.xwiki.plugin.skinx.JsSkinExtensionPlugin=[], doc=My
Space.W
ebHome}


Thanks,
Vinutha


Ok, I've found the problem. Nothing to do with XWiki or MySQL, the heap of
Tomcat was too low. I've increased the -Xmx and it works fine.

Antonio


-- 
View this message in context: 
http://n2.nabble.com/Re%3A-Import-of-XAR%3A-Java-Heap-Space-Out-Of-Memory-Exception-in-1.2-tp508065p575598.html
Sent from the XWiki- Users mailing list archive at Nabble.com.

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Import of XAR: Java Heap Space Out Of Memory Exception in 1.2

2008-02-16 Thread Antonio Goncalves
Ok, I've found the problem. Nothing to do with XWiki or MySQL, the heap of
Tomcat was too low. I've increased the -Xmx and it works fine.

Antonio


2008/2/16, Antonio Goncalves [EMAIL PROTECTED]:

 Hi everybody,

 I'm bringing this issue back but it still doesn't work. This is what I'm
 doing :

 I'm starting everything from scratch : new database completly empty and a
 fresh XWiki 1.2.2.7518 on a fresh Tomcat 5.5.26 and a 5.0.41 MySQL (with a
 5.1.5 driver). Just after installing XWiki, I try to import my 6Mb xar
 file that I've exported from a XWiki 1.0. I select my file, click on
 Upload and I end up with a Java Heap Space Out Of Memory Exception without
 any stack trace. Notice that it breaks even before showing the page allowing
 me to select the file.

 Here is how I've checked that MySQL could handle 6Mb : SHOW SESSION
 VARIABLES like max_allowed_packet';  and  SHOW GLOBAL VARIABLES like
 'max_allowed_packet';  Both results are 16Mb (max_allowed_packet =
 16776192). I don't know how to get the value max_upload_size from
 XWiki.Preferences but following what Vincent said and
 http://jira.xwiki.org/jira/browse/XE-145  it should be set to 32Mb. In
 terms of size (MySQL and XWiki) it looks like it can handle 6Mb.

 I have several archives. So I've tried with a 2.2Mb xar file. It also
 breaks but the behaviour is different. After clicking on upload, XWiki shows
 me the page allowing me to choose from a file (this page doesn't even appear
 with the 6Mb file). But then it breaks with a more explicit stack trace (as
 follow).

 Any idea ?
 Antonio

 Error number 0 in 11: Uncaught exception
 Wrapped Exception: Java heap spacecom.xpn.xwiki.XWikiException: Error number 
 0 in 11: Uncaught exception
 Wrapped Exception: Java heap space
   at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:164)
   at 
 org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
   at 
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
   at 
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
   at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
   at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   at 
 com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
   at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
   at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
   at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
   at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   at 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
   at 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
   at 
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
   at 
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
   at 
 org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
   at 
 org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
   at 
 org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
   at 
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
   at java.lang.Thread.run(Thread.java:595)


 Wrapped Exception:
 java.lang.OutOfMemoryError: Java heap space
   at 
 java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:99)
   at 
 java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:393)
   at java.lang.StringBuffer.append(StringBuffer.java:225)
   at org.suigeneris.jrcs.rcs.impl.Node.toText(Node.java:720)
   at org.suigeneris.jrcs.rcs.Archive.toString(Archive.java:914)
   at org.suigeneris.jrcs.rcs.Archive.toString(Archive.java:686)
   at org.suigeneris.jrcs.rcs.Archive.toByteArray(Archive.java:723)
   at 
 com.xpn.xwiki.doc.XWikiAttachmentArchive.getArchive(XWikiAttachmentArchive.java:79)
   at 
 com.xpn.xwiki.doc.XWikiAttachmentArchive.getArchive(XWikiAttachmentArchive.java:68)
   at com.xpn.xwiki.doc.XWikiAttachment.toXML(XWikiAttachment.java:309)
   at 
 com.xpn.xwiki.doc.XWikiDocument.toXMLDocument(XWikiDocument.java:2191)
   at com.xpn.xwiki.doc.XWikiDocument.toXML(XWikiDocument.java:2086)
   at 

Re: [xwiki-users] Import of XAR: Java Heap Space Out Of Memory Exception in 1.2

2008-02-16 Thread Antonio Goncalves
Hi everybody,

I'm bringing this issue back but it still doesn't work. This is what I'm
doing :

I'm starting everything from scratch : new database completly empty and a
fresh XWiki 1.2.2.7518 on a fresh Tomcat 5.5.26 and a 5.0.41 MySQL (with a
5.1.5 driver). Just after installing XWiki, I try to import my 6Mb xar file
that I've exported from a XWiki 1.0. I select my file, click on Upload and I
end up with a Java Heap Space Out Of Memory Exception without any stack
trace. Notice that it breaks even before showing the page allowing me to
select the file.

Here is how I've checked that MySQL could handle 6Mb : SHOW SESSION
VARIABLES like max_allowed_packet';  and  SHOW GLOBAL VARIABLES like
'max_allowed_packet';  Both results are 16Mb (max_allowed_packet =
16776192). I don't know how to get the value max_upload_size from
XWiki.Preferences but following what Vincent said and
http://jira.xwiki.org/jira/browse/XE-145  it should be set to 32Mb. In terms
of size (MySQL and XWiki) it looks like it can handle 6Mb.

I have several archives. So I've tried with a 2.2Mb xar file. It also breaks
but the behaviour is different. After clicking on upload, XWiki shows me the
page allowing me to choose from a file (this page doesn't even appear with
the 6Mb file). But then it breaks with a more explicit stack trace (as
follow).

Any idea ?
Antonio

Error number 0 in 11: Uncaught exception
Wrapped Exception: Java heap spacecom.xpn.xwiki.XWikiException: Error
number 0 in 11: Uncaught exception
Wrapped Exception: Java heap space
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:164)
at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at 
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:595)


Wrapped Exception:
java.lang.OutOfMemoryError: Java heap space
at 
java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:99)
at 
java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:393)
at java.lang.StringBuffer.append(StringBuffer.java:225)
at org.suigeneris.jrcs.rcs.impl.Node.toText(Node.java:720)
at org.suigeneris.jrcs.rcs.Archive.toString(Archive.java:914)
at org.suigeneris.jrcs.rcs.Archive.toString(Archive.java:686)
at org.suigeneris.jrcs.rcs.Archive.toByteArray(Archive.java:723)
at 
com.xpn.xwiki.doc.XWikiAttachmentArchive.getArchive(XWikiAttachmentArchive.java:79)
at 
com.xpn.xwiki.doc.XWikiAttachmentArchive.getArchive(XWikiAttachmentArchive.java:68)
at com.xpn.xwiki.doc.XWikiAttachment.toXML(XWikiAttachment.java:309)
at 
com.xpn.xwiki.doc.XWikiDocument.toXMLDocument(XWikiDocument.java:2191)
at com.xpn.xwiki.doc.XWikiDocument.toXML(XWikiDocument.java:2086)
at com.xpn.xwiki.doc.XWikiDocument.toFullXML(XWikiDocument.java:2055)
at 
com.xpn.xwiki.doc.XWikiDeletedDocument.setDocument(XWikiDeletedDocument.java:182)
at 

Re: [xwiki-users] Import of XAR: Java Heap Space Out Of Memory Exception in 1.2

2008-01-21 Thread Antonio Goncalves
Hi all,

I'm trying to upgrade XWiki from 1.0 to 1.2. The problem comes when I want
to import my .xar file (6Mb) and get a Java Heap Space Out Of Memory
Exception.

I've checked your admin page
http://www.xwiki.org/xwiki/bin/view/FAQ/Howtoincreasethemaximumattachmentsize
and
it looks like for my problem (file  10Mb), only MySQL should be changed. So
I've changed the max_allowed_packet parameter but the problem still occurs.
I don't have anything in Tomcat or MySQL logs, which is a bit strange. The
only trace I get is the one bellow. It looks like Lucene breaks because of
the file upload not working. Any idea ? How could I get more details in the
log ?

Thanks,

Antonio

[http://localhost:8080/xwiki/bin/upload/XWiki/Import]
[http-8080-Processor25] ERROR lucene.IndexUpdater - invalid
parameters given to add: XWiki.Import, null,
{grouplist={xwiki:XWiki.XWikiGuest=[], xwiki:xwiki:XWiki.XWikiGuest=[]},
fileuploadlist=[name=null, StoreLocation=D:\Servers\Tomcat\apache-
tomcat-5.5.23\temp\upload_662feb76_117990b87e0__8000_.tmp,
size=77bytes, isFormField=true
, FieldName=xredirect, name=null, StoreLocation=D:\Servers\Tomcat\apache-
tomcat-5.5.23\temp\upload_662feb76_117990b87e0__8000_0001.tmp,
size=20bytes, isFormField=true, FieldName=filename, name=
Backup2008-01-20.xar , StoreLocation=D:\Servers\Tomcat\apache-
tomcat-5.5.23\temp\upl
oad_662feb76_117990b87e0__8000_0002.tmp, size=6639095bytes,
isFormField=false, FieldName=filepath], msg=com.xpn.xwiki.web.XWikiMessageTo
[EMAIL PROTECTED], [EMAIL PROTECTED], baseskin=albatross, tdoc=
XWiki.Import, ajax=false, locale=fr, doc=XWiki.Import, mainxwiki=x
wiki, skin=albatross, message=javaheapspace,
[EMAIL PROTECTED],
vcontext=org.apache.v
[EMAIL PROTECTED]
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users