Announcement Announcement Module
No announcement yet.
where this error come from??? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • where this error come from???

    Hi everyone!

    My full Stack: MySql 6 | Lucene | Hibernate | Spring | Flex
    Remoting Server is BlazeDS and web Server is Tomcat 6.
    Database Sch: A 1..* B
    One record Size : < 2ko
    Main table size A : 1,2M Records

    Everything was working fine until we made the full index yesterday, 550Mo , i'm not sure that it's related to our problem but everything was okay before! I get results by 10 from the database and they are explicitly paginated with Lucene. Starting the navigation with flex component, the application crashes after few requests and the throughouptput on AMF channels is getting higher i don't know why (i thought all requests have the same size, but it seems a cumulative size here) . This screenshots from the BlazeDs Administration Console:
    (Sorry , comments are in french ^^')
    and then

    JUnit tests are okay!
    Can this be a mapping error? or it is a blazeDS issue? or something else i'm not seeing?
    here is the full error stack:
    [BlazeDS]Java heap space
    java.lang.OutOfMemoryError: Java heap space
    	at com.mysql.jdbc.Buffer.getBytes(
    	at com.mysql.jdbc.Buffer.readLenByteArray(
    	at com.mysql.jdbc.MysqlIO.nextRow(
    	at com.mysql.jdbc.MysqlIO.readSingleRowSet(
    	at com.mysql.jdbc.MysqlIO.getResultSet(
    	at com.mysql.jdbc.MysqlIO.readResultsForQueryOrUpdate(
    	at com.mysql.jdbc.MysqlIO.readAllResults(
    	at com.mysql.jdbc.MysqlIO.sqlQueryDirect(
    	at com.mysql.jdbc.Connection.execSQL(
    	at com.mysql.jdbc.PreparedStatement.executeInternal(
    	at com.mysql.jdbc.PreparedStatement.executeQuery(
    	at org.hibernate.jdbc.AbstractBatcher.getResultSet(
    	at org.hibernate.loader.Loader.getResultSet(
    	at org.hibernate.loader.Loader.doQuery(
    	at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(
    	at org.hibernate.loader.Loader.loadCollection(
    and then this error appear :
    	at org.apache.log4j.Category.callAppenders(
    	at org.apache.log4j.Category.forcedLog(
    	at org.apache.log4j.Category.log(
    	at org.slf4j.impl.Log4jLoggerAdapter.debug(
    	at org.hibernate.jdbc.AbstractBatcher.logOpenPreparedStatement(
    	at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(
    	at org.hibernate.loader.Loader.prepareQueryStatement(
    	at org.hibernate.loader.Loader.doQuery(
    	at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(
    	at org.hibernate.loader.Loader.loadCollection(
    	at org.hibernate.loader.collection.CollectionLoader.initialize(
    	at org.hibernate.persister.collection.AbstractCollectionPersister.initialize(
    	at org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(
    	at org.hibernate.impl.SessionImpl.initializeCollection(
    	at org.hibernate.collection.AbstractPersistentCollection.initialize(
    	at org.hibernate.collection.PersistentSet.toArray(
    	at java.util.ArrayList.<init>(Unknown Source)
    Tkx in advance

  • #2
    Doesn't look to me like a BlazeDS problem. If the size of the payloads is growing significantly, I would think perhaps you are loading more data than you realize. Either that or you've got lazy Hibernate collections that are getting initialized during the AMF serialization process (though for that to even work without getting immediate errors, you would have to be using something like the OpenSessionInViewFilter). Given though that the error looks to specifically be occurring when the JDBC driver is executing your queries, I would lean towards the first suggestion.


    • #3
      I'm looking now in this same issue you mentioned. Actually the data scheme ( that i didn't care that much in first sight) may be the cause of this problem!
      Actually the association between A and B is many to many relation. (a Person may have many organism and organism may contain many Person). Okay, wanna try something else: Can you give me an advice on tuning my JVM, if my pc (WINDOWS XP) has 3GB of RAM and is fully dedicated to this work, what would be the best configuration for me?