facebook

XML Validation OutOfMemory?

  1. MyEclipse Archived
  2.  > 
  3. Web Development (HTML, CSS, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #243004 Reply

    dream_walker
    Member

    Hi!

    I have created a new file called activemq.xml and pasted the following xml in it:

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <!DOCTYPE beans PUBLIC “-//ACTIVEMQ//DTD//EN” “http://activemq.org/dtd/activemq.dtd”&gt;
    <beans>

    <!– ==================================================================== –>
    <!– ActiveMQ Broker Configuration –>
    <!– ==================================================================== –>
    <broker>
    <connector>
    <tcpServerTransport uri=”tcp://localhost:61616″ backlog=”1000″ useAsyncSend=”true” maxOutstandingMessages=”50″/>
    </connector>

    <!– to enable Stomp support uncomment this
    <connector>
    <serverTransport uri=”stomp://localhost:61626″/>
    </connector>
    –>

    <persistence>
    <cachePersistence>
    <journalPersistence directory=”../var/journal”>
    <jdbcPersistence dataSourceRef=”derby-ds”/>

    <!– Choose one of the following three configurationss to work with mysql-ds–>
    <!–
    <jdbcPersistence dataSourceRef=”mysql-ds”
    adapterClass=”org.activemq.store.jdbc.adapter.BytesJDBCAdaptor”/>
    <jdbcPersistence dataSourceRef=”mysql-ds”
    adapterClass=”org.activemq.store.jdbc.adapter.BlobJDBCAdaptor”/>
    <jdbcPersistence dataSourceRef=”mysql-ds”
    adapterClass=”org.activemq.store.jdbc.adapter.StreamJDBCAdaptor”/>
    –>
    </journalPersistence>
    </cachePersistence>
    </persistence>
    </broker>

    <!– ==================================================================== –>
    <!– JDBC DataSource Configurations –>
    <!– ==================================================================== –>

    <!– The Derby Datasource that will be used by the Broker –>
    <bean id=”derby-ds” class=”org.apache.commons.dbcp.BasicDataSource” destroy-method=”close”>
    <property name=”driverClassName”>
    <value>org.apache.derby.jdbc.EmbeddedDriver</value>
    </property>
    <property name=”url”>
    <!– Use a URL like ‘jdbc:hsqldb:hsql://localhost:9001’ if you want to connect to a remote hsqldb –>
    <value>jdbc:derby:derbydb;create=true</value>
    </property>
    <property name=”username”>
    <value></value>
    </property>
    <property name=”password”>
    <value></value>
    </property>
    <property name=”poolPreparedStatements”>
    <value>true</value>
    </property>
    </bean>

    <!– The MYSQL Datasource that will be used by the Broker –>
    <bean id=”mysql-ds”
    class=”org.apache.commons.dbcp.BasicDataSource”
    destroy-method=”close”>
    <property name=”driverClassName”>
    <value>com.mysql.jdbc.Driver</value>
    </property>
    <property name=”url”>
    <value>jdbc:mysql://localhost/activemq</value>
    </property>
    <property name=”username”>
    <value>myname</value>
    </property>
    <property name=”password”>
    <value>mypassword</value>
    </property>
    <property name=”poolPreparedStatements”>
    <value>true</value>
    </property>
    </bean>
    </beans>

    Saved… and since then the system works teribly slow. Cannot close the editor of this file. Checked the logs and:

    !ENTRY org.eclipse.core.runtime 4 2 2005-12-12 21:40:13.453
    !MESSAGE An internal error occurred during: “loading http://activemq.org/dtd/activemq.dtd&#8221;.
    !STACK 0
    java.lang.OutOfMemoryError: PermGen space

    Configuration:
    Eclipse 3.1
    MyEclipse 4.0.3
    Windows XP SP2
    Java 1.4 (or 5, not shure which is used for starting Eclipse).

    Best regards,
    Alex

    #243016 Reply

    Riyad Kalla
    Member

    Alex,
    Please edit your eclipse.ini file or the shortcut you use to start MyEclipse and use these command line arguments:
    -vmargs -Xms128M -Xmx512M -XX:PermSize=64M -XX:MaxPermSize=128M

    The problem is due to the size of Eclipse + MyEclipse it is not uncommon to run into VM memory limits. The new parameters should speed things upf or you.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: XML Validation OutOfMemory?

You must be logged in to post in the forum log in