FAQ

Got a question or having a problem that isn’t answered below, then please feel free to contact me: help at littlegrid dot org

    1. How does littlegrid work?
      1. littlegrid loads each Coherence cluster member into its own ‘child-first’ class-loader using the settings that littlegrid has defined for cluster ports and names, this ensures that you don’t have any accidental clustering.

Note

littlegrid does rely on using Coherence system properties to control certain aspects of Coherence’s behaviour, such as the Extend proxy address and port, along with others.

    1. How many cluster members can I run in a single JVM?
      1. Quite a few! On an average laptop/desktop, it is perfectly easy to run 30 or more cluster members in a single JVM by setting the memory settings appropriately.
    1. I can’t seem to start my cluster with littlegrid.
      1. In the event a problem starting up your cluster, then littlegrid will produce an ‘exception report’ Sample exception report which details the class path, system properties and other useful information to help diagnose the problem. If you’re really stuck, then just email me the exception report and I’ll take a look :-)
    1. I’m getting perm-space problems.
      1. This is because each Coherence cluster member gets loaded into their own class-loader, this causes a lot of classes to loaded, with the Sun JVM, these classes reside in the perm-space. To accommodate the extra classes, simply include the following as it will be fine for most cases:

      -XX:MaxPermSize=256m

    1. I’m using Ant and it looks like it doesn’t load some littlegrid classes - I’m getting ClassNotFoundExceptions.
      1. When using Ant, please set JUnit to fork:
      <junit fork="yes">
          ...
      </junit>
      
    1. I’m using Maven and getting perm-space problems.
      1. With Maven, you need to configure the Surefire plugin, take a look at the Maven best practice
    1. I’m seeing java.lang.SecurityException: Prohibited package name: java.lang- why is that?
      1. Please upgrade to version 2.12 (or later) - older versions of littlegrid used your JAVA_HOME environment variable to work out which core Java JAR files (such as rt.jar) should be excluded from its child-first class loader - with 2.12 the requirement for JAVA_HOME to match your IDE is no longer required.
    1. I’m seeing an exception message with Error instantiating Filter with name: gzip - why is that?
      1. When used with littlegrid, Coherence 3.7.0.x onwards gives this exception if none of your cache services are marked as autostart. As of version 2.13, littlegrid attempts to identify this exception and report it as requiring a service to be auto-started.

      <autostart>true</autostart>