Pivot
  1. Pivot
  2. PIVOT-406

Ensure that java_arguments param is properly set for Large Data demo

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 2.0.1
    • Component/s: demos
    • Labels:
      None

      Description

      In previous releases, the HTML for the Large Data sets demo included a JVM argument to increase the heap size for the demo applet. The default heap size for the JVM on some platforms is not sufficient to handle the large number of rows displayed by the demo. This argument was lost in the transition to the new site format.

      The following applet param should be added to this demo:

      java_arguments:"-Xms512M"

      1. LargeData - Applet.launch
        2 kB
        Sandro Martini
      2. LargeData - Applet - localhost.launch
        2 kB
        Sandro Martini

        Issue Links

          Activity

          Hide
          Sandro Martini added a comment -

          512 MB of RAM aren't enough for the 10e5 version of the data file ... I just tried the Web Start version with a JRE 6 at 32 bit, and with a 1024 MB all works.
          This is an extract from the related (dynamically generated) jnlp file:
          <java version="1.6+" href="http://java.sun.com/products/autodl/j2se"
          initial-heap-size="256M" max-heap-size="1024M"/>
          <jar href="lib/pivot-core-2.0.1.jar"/><jar href="lib/pivot-wtk-2.0.1.jar" main="true"/><jar href="lib/pivot-wtk-terra-2.0.1.jar"/><jar href="lib/pivot-demos-2.0.1.jar"/><jar href="lib/svgSalamander-tiny.jar"/></resources><application-desc main-class="org.apache.pivot.wtk.DesktopApplicationContext"><argument>org.apache.pivot.demos.million.LargeData</argument><argument>--center=true</argument>
          <!-- <argument>--basePath=pivot-demos/assets</argument> -->
          <argument>--basePath=http://localhost:8080/pivot-demos/assets</argument>
          </application-desc><update check="background"/>
          </jnlp>

          note that at the moment even the basePath argument has been fixed by hand in the jnlp page ... I have to try to make it work in the standard distribution, and in the live Pivot web site.

          Show
          Sandro Martini added a comment - 512 MB of RAM aren't enough for the 10e5 version of the data file ... I just tried the Web Start version with a JRE 6 at 32 bit, and with a 1024 MB all works. This is an extract from the related (dynamically generated) jnlp file: <java version="1.6+" href="http://java.sun.com/products/autodl/j2se" initial-heap-size="256M" max-heap-size="1024M"/> <jar href="lib/pivot-core-2.0.1.jar"/><jar href="lib/pivot-wtk-2.0.1.jar" main="true"/><jar href="lib/pivot-wtk-terra-2.0.1.jar"/><jar href="lib/pivot-demos-2.0.1.jar"/><jar href="lib/svgSalamander-tiny.jar"/></resources><application-desc main-class="org.apache.pivot.wtk.DesktopApplicationContext"><argument>org.apache.pivot.demos.million.LargeData</argument><argument>--center=true</argument> <!-- <argument>--basePath=pivot-demos/assets</argument> --> <argument>--basePath= http://localhost:8080/pivot-demos/assets </argument> </application-desc><update check="background"/> </jnlp> note that at the moment even the basePath argument has been fixed by hand in the jnlp page ... I have to try to make it work in the standard distribution, and in the live Pivot web site.
          Hide
          Sandro Martini added a comment -

          It's important to have even this Demo working (both in demos war, and in live site), bacause it show one of the reason to have a RIA/IIA application on the client: use memory (in this case from 256 MB to 1024 MB, on a 32 bit JRE) and computational power on clients.

          Show
          Sandro Martini added a comment - It's important to have even this Demo working (both in demos war, and in live site), bacause it show one of the reason to have a RIA/IIA application on the client: use memory (in this case from 256 MB to 1024 MB, on a 32 bit JRE) and computational power on clients.
          Hide
          Sandro Martini added a comment -

          Memory settings fixed now, both for applet and webg start execution.

          Now only the root param (from build.xml) has to be fixed because for web start it need the full codebase:
          verify if/how to use it (in xml templates that are transformed via xsl in the deploy ant task), or at least set by hand in build.properties for a quick solution.

          Show
          Sandro Martini added a comment - Memory settings fixed now, both for applet and webg start execution. Now only the root param (from build.xml) has to be fixed because for web start it need the full codebase: verify if/how to use it (in xml templates that are transformed via xsl in the deploy ant task), or at least set by hand in build.properties for a quick solution.
          Hide
          Sandro Martini added a comment -

          Memory settings fixed now, both for applet and web start execution.

          Could be interesting to see if current (huge) memroy settings are enough even in a 64 bit JRE ... if someone try please write comments here.

          On the root problem (for LargeData Demo), I put a quick solution but not here, in the PIVOT-733 issue

          Show
          Sandro Martini added a comment - Memory settings fixed now, both for applet and web start execution. Could be interesting to see if current (huge) memroy settings are enough even in a 64 bit JRE ... if someone try please write comments here. On the root problem (for LargeData Demo), I put a quick solution but not here, in the PIVOT-733 issue
          Hide
          Sandro Martini added a comment -

          sample eclipse launch files to run it as an applet:
          the first as written in demos pages (in the pivot-demos.war), and the other (localhost) with an absolute url (like when run in a local tomcat instance), just for reference

          Show
          Sandro Martini added a comment - sample eclipse launch files to run it as an applet: the first as written in demos pages (in the pivot-demos.war), and the other (localhost) with an absolute url (like when run in a local tomcat instance), just for reference

            People

            • Assignee:
              Sandro Martini
              Reporter:
              Greg Brown
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development