OW2 Consortium
Search OW2 Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | exoplatform List | Febuary 2008 Index

<--  Date Index  --> <--  Thread Index  -->

[exoplatform] Re: PermGen Space Headache


Here is the patch in the attached file with settings for PermGen space
that work for me (256M) under java6 + the two casts due to java6.

Luis

On Fri, Feb 15, 2008 at 2:05 PM, Luis Arias <kaaloo@xxxxxxxxx> wrote:
> Hi Patrice,
>
>  Thanks for all your help.  I'm building now on java6 and I will send
>  you a patch later on as I have already had to do some very minor
>  changes such as casting in two classes that used generics and
>  reflection.
>
>  I wanted to let you know that I also had some problems in the deploy
>  phase because of missing files in the repository.  There where three
>  or four of them and they were basically earlier versions than those in
>  the repository for instance poi-3.0alpha1.jar instad of poi-3.0FINAL
>  which was already referenced in the repository.  I wasn't able to find
>  exactly where these files where declared.
>
>  Luis
>
>
>
>  On Fri, Feb 15, 2008 at 8:13 AM, Patrice Lamarque
>  <patrice.lamarque@xxxxxxxxx> wrote:
>  > Hello Luis,
>  >
>  > You are right, MAVEN_OPTS where ignored by the script. Thanks for 
> spotting
>  > that. I just fixed it.
>  > Please update and get the new exoenv.sh.
>  >
>  > Now MAVEN_OPTS shoud be used at build time and JAVA_OPTS by tomcat 
> runtime.
>  >  I am not sure if such a huge MaxPermSize is needed but I have set it to 
> 128
>  > because I also have OutOfMemoryError sometimes.
>  >
>  > I also recommand using java5 for now, but let us know if you have some
>  > success with java6.
>  >
>  >
>  > regards,
>  >
>  >
>  > --
>  > Patrice Lamarque
>  > eXo Platform SAS
>  >
>  >
>  >
>  > On Thu, Feb 14, 2008 at 11:21 AM, Luis Arias <kaaloo@xxxxxxxxx> wrote:
>  > >
>  > >
>  > >
>  > > Hi,
>  > >
>  > > What are the right settings for not running out of PermGen space when
>  > > building ultimate ?  I've tried increasing MaxPermSize successively in
>  > > the exoenv.sh script to no avail.  I feel that the settings are not
>  > > being taken into account.  Is there an order involved ? I'm building
>  > > on latest java 6.
>  > >
>  > > MAVEN_OPTS="-Xshare:auto -Xms128m -Xmx512m -XX:MaxPermSize=512m"
>  > >
>  > > #echo "This is a test"
>  > > JAVA_OPTS="-Xshare:auto -Xms128m -Xmx512m -XX:MaxPermSize=512m
>  > > -Dexo.directory.base=$EXO_BASE_DIRECTORY"
>  > >
>  > > Thanks,
>  > >
>  > > --
>  > > Luis Arias
>  > > +33 6 14 20 87 93
>  > > skype : kaaloo
>  > >
>  > >
>  > > --
>  > > You receive this message as a subscriber of the exoplatform@xxxxxxx
>  > mailing list.
>  > > To unsubscribe: mailto:exoplatform-unsubscribe@xxxxxxx
>  > > For general help: mailto:sympa@xxxxxxx?subject=help
>  > > OW2 mailing lists service home page: http://www.ow2.org/wws
>  > >
>  > >
>  >
>  >
>  >
>
>
>
>  --
>
>
> Luis Arias
>  +33 6 14 20 87 93
>  skype : kaaloo
>



-- 
Luis Arias
+33 6 14 20 87 93
skype : kaaloo
Index: tools/trunk/build/src/main/resources/linux/exoenv.sh
===================================================================
--- tools/trunk/build/src/main/resources/linux/exoenv.sh	(revision 11004)
+++ tools/trunk/build/src/main/resources/linux/exoenv.sh	(working copy)
@@ -27,7 +27,7 @@
 M2_REPOS="file:$EXO_BASE_DIRECTORY/exo-dependencies/repository, http://maven2.exoplatform.org/rest/maven2";
 
 # MAVEN_OPTS will be used as JVM options for the build by 'exobuild' command
-MAVEN_OPTS="-Xshare:auto -Xms128m -Xmx512m -XX:MaxPermSize=128M" 
+MAVEN_OPTS="-Xshare:auto -Xms128m -Xmx512m -XX:MaxPermSize=256M" 
 
 # JAVA_OPTS will be used by tomcat
 JAVA_OPTS="-Xshare:auto -Xms256m -Xmx1536m -XX:MaxPermSize=256M -Dexo.directory.base=$EXO_BASE_DIRECTORY" 
@@ -42,7 +42,7 @@
 if [ -e "$EXO_PROJECTS_SRC/tools/trunk/config/maven2/template-settings.xml" ] ; then
   JAVA_DIR_SUB=`echo $JAVA_DIR | sed -e 's/\\//\\\\\//g'`
   # echo $JAVA_DIR_SUB
-  eval "sed -e 's/@java.dir@/$JAVA_DIR_SUB/g' $EXO_PROJECTS_SRC/tools/trunk/config/maven2/template-settings.xml > maven2/conf/settings.xml"
+  eval "sed -e 's/@java.dir@/$JAVA_DIR_SUB/g' $EXO_PROJECTS_SRC/tools/trunk/config/maven2/template-settings.xml > $M2_HOME/conf/settings.xml"
 fi
 
 if [ -e "${PORTABLE_DIR}/tools/env.sh" ] ; then
@@ -51,4 +51,4 @@
 
 if [ -e "${EXO_SH_SCRIPT}/exoscript.sh" ] ; then
   source "${EXO_SH_SCRIPT}/exoscript.sh"
-fi
\ No newline at end of file
+fi
Index: portal/trunk/component/xml-parser/src/main/java/org/exoplatform/services/common/ServicesContainer.java
===================================================================
--- portal/trunk/component/xml-parser/src/main/java/org/exoplatform/services/common/ServicesContainer.java	(revision 11004)
+++ portal/trunk/component/xml-parser/src/main/java/org/exoplatform/services/common/ServicesContainer.java	(working copy)
@@ -95,7 +95,7 @@
 
   @SuppressWarnings("unchecked")
   private static <T> T create(Class<T> clazz) throws Exception {
-    Constructor<T> [] constructors = clazz.getDeclaredConstructors();
+    Constructor<T> [] constructors = (Constructor<T> [])clazz.getDeclaredConstructors();
     Arrays.sort(constructors, new Comparator<Constructor<T>>() {
       public int compare(Constructor<T> cons1, Constructor<T> cons2) {
         return cons1.getParameterTypes().length - cons2.getParameterTypes().length;
Index: ws/trunk/rest/core/src/main/java/org/exoplatform/services/rest/transformer/EntityTransformerFactory.java
===================================================================
--- ws/trunk/rest/core/src/main/java/org/exoplatform/services/rest/transformer/EntityTransformerFactory.java	(revision 11004)
+++ ws/trunk/rest/core/src/main/java/org/exoplatform/services/rest/transformer/EntityTransformerFactory.java	(working copy)
@@ -50,7 +50,7 @@
    */
   public final GenericEntityTransformer newTransformer(
       Class<? extends GenericEntityTransformer> transformerType) throws Exception {
-    Constructor<? extends GenericEntityTransformer>[] constructors = transformerType.getConstructors();
+    Constructor<? extends GenericEntityTransformer>[] constructors = (Constructor<? extends GenericEntityTransformer>[])transformerType.getConstructors();
     // Sort constructors by number of parameters.
     // With more parameters must be first.
     sortConstructorsByParamsLength(constructors, 0, constructors.length - 1);


<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 2006-2007, OW2 Consortium | contact | webmaster.