Re: [xwiki-users] Tomcat xwiki-temp directory and slow startup times

2013-03-19 Thread Thomas Mortagne
On Sat, Mar 16, 2013 at 4:33 PM, Ashtar Communications
 wrote:
> Hi,
>
> I have a question about Tomcat's "xwiki-temp" directory causing substantial
> slowdowns at startup.
>
> I am running XWiki 4.2 on Tomcat (on Windows Server 2008 R2).
>
> I was noticing very lengthy startup times (easily an hour or more), and
> finally tracked the source of the problem to the "xwiki-temp" Tomcat
> directory:
> \Tomcat\work\Catalina\xxx.xxx.xxx.xxx\xwiki\xwiki-temp
>
> This directory has tens of thousands of identical files, and appears to not
> be cleared between Tomcat restarts. After a week it's at about 70,000 files
> and 500MB.
>
> Deleting the contents of this directory immediately remedied my slow
> startup times, but over time the directory fills back up and needs to be
> cleared out again.
>
> The majority of the directory is filled with subdirectories with
> alphanumeric codes, like:
> G6mHPTWL
> kJar6JFZ
>
> The contents of each subfolder is identical, with two more subfolders:
>
> /attachment - this contains 2 PNG files:
> xwiki.ColorThemes.DefaultColorTheme.header.png
> xwiki.ColorThemes.DefaultColorTheme.logo.png
>
> /skins - this contains a number of other subdirectories for the colibri
> skin, all with css files from the skin.
>
> I understand this is likely a Tomcat problem more than an XWiki problem per
> se, but am hoping someone else out there has seen it before and has an idea
> what's going on or how to fix it.

Actually it's a XWiki problem. Various issues related to leaked
temporary files for attachment have been fixed in 4.4.1.

>
> thanks,
>
> Aaron
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



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


Re: [xwiki-users] Tomcat-Xwiki

2009-05-20 Thread Marius Dumitru Florea
Hi Gerritjan,

Maybe changing max_allowed_packet as stated on the MySQL install 
instructions will help. I'm just guessing.

http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationMySQL

Hope this helps,
Marius

Gerritjan Koekkoek wrote:
> My Configuration
> MAC OS X 10.5.7
> Tomcat 5.5
> MySQL
> XWIKI 1.8.3
> 
> I'm trying to import a XAR file of approx 6.2 MB
> 
> I had a heap-size error, but changed the tomcat startupscript as follows
> #!/bin/sh
> export CATALINA_HOME=/usr/local/apache-tomcat-5.5.27
> export JAVA_HOME=/usr
> export JAVA_OPTS=-Xmx512m
> $CATALINA_HOME/bin/startup.sh
> 
> Now I get following error?
> A problem occurred while trying to process your request. Please  
> contact the webmaster if this happens again.
> 
> Detailed information:
>  Error number 3232 in 3: Exception while saving attachment  
> 20090516.xar of document XWiki.Import
> Wrapped Exception: Could not execute JDBC batch update
> com.xpn.xwiki.XWikiException: Error number 3232 in 3: Exception while  
> saving attachment 20090516.xar of document XWiki.Import
> Wrapped Exception: Could not execute JDBC batch update
> 
> Any suggestions?
> 
> Gerritjan
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Tomcat-Xwiki

2009-05-20 Thread Paul Libbrecht
Geritjan, there's another error behind this one.
Paul



Le 20-mai-09 à 21:05, Gerritjan Koekkoek   
a écrit :

> My Configuration
> MAC OS X 10.5.7
> Tomcat 5.5
> MySQL
> XWIKI 1.8.3
>
> I'm trying to import a XAR file of approx 6.2 MB
>
> I had a heap-size error, but changed the tomcat startupscript as  
> follows
> #!/bin/sh
> export CATALINA_HOME=/usr/local/apache-tomcat-5.5.27
> export JAVA_HOME=/usr
> export JAVA_OPTS=-Xmx512m
> $CATALINA_HOME/bin/startup.sh
>
> Now I get following error?
> A problem occurred while trying to process your request. Please
> contact the webmaster if this happens again.
>
> Detailed information:
> Error number 3232 in 3: Exception while saving attachment
> 20090516.xar of document XWiki.Import
> Wrapped Exception: Could not execute JDBC batch update
> com.xpn.xwiki.XWikiException: Error number 3232 in 3: Exception while
> saving attachment 20090516.xar of document XWiki.Import
> Wrapped Exception: Could not execute JDBC batch update
>
> Any suggestions?
>
> Gerritjan
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Tomcat-Xwiki

2009-05-20 Thread Gerritjan Koekkoek
My Configuration
MAC OS X 10.5.7
Tomcat 5.5
MySQL
XWIKI 1.8.3

I'm trying to import a XAR file of approx 6.2 MB

I had a heap-size error, but changed the tomcat startupscript as follows
#!/bin/sh
export CATALINA_HOME=/usr/local/apache-tomcat-5.5.27
export JAVA_HOME=/usr
export JAVA_OPTS=-Xmx512m
$CATALINA_HOME/bin/startup.sh

Now I get following error?
A problem occurred while trying to process your request. Please  
contact the webmaster if this happens again.

Detailed information:
 Error number 3232 in 3: Exception while saving attachment  
20090516.xar of document XWiki.Import
Wrapped Exception: Could not execute JDBC batch update
com.xpn.xwiki.XWikiException: Error number 3232 in 3: Exception while  
saving attachment 20090516.xar of document XWiki.Import
Wrapped Exception: Could not execute JDBC batch update

Any suggestions?

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