JPPF, java, parallel computing, distributed computing, grid computing, parallel, distributed, cluster, grid, cloud, open source, android, .net
JPPF

The open source
grid computing
solution

 Home   About   Features   Download   Documentation   On Github   Forums 
June 03, 2023, 04:10:55 PM *
Welcome,
Please login or register.

Login with username, password and session length
Advanced search  
News: New users, please read this message. Thank you!
  Home Help Search Login Register  
Pages: [1]   Go Down

Author Topic: Problem in running Matrix demo  (Read 4346 times)

Abhilash K

  • JPPF Grand Master
  • ****
  • Posts: 64
Problem in running Matrix demo
« on: December 07, 2006, 08:24:24 AM »

Hii,

    when i attempted to run a demo application, Matrix i got the following errors.
------------------------------------------------------------------------
[java] standard output:
 [java] Exception java.lang.OutOfMemoryError: requested 32756 bytes for Chun
l::allocate. Out of swap space?

 [java] error output:

 [java] JPPFClassLoader.init(): attempting connection to the class server
 [java] ClassServerDelegate.init(): Attempting connection to the class serve

 [java] ClassServerDelegate.init(): Reconnected to the class server
 [java] JPPFClient.init(): Attempting connection to the JPPF driver
 [java] JPPFClassLoader.init(): Reconnected to the class server
 [java] PeerNode.init(): Attempting connection to the JPPF driver
 [java] JPPFClient.init(): Reconnected to the JPPF driver
 [java] Running Matrix demo with matrix size = 300*300 for 10 iterations
 [java] PeerNode.init(): Reconnected to the JPPF driver
 [java] detected new build number: 347; previous build number: -1
 [java] Reloading this node
-----------------------------------------------------------------------
        I am not sure whether my steps are correct in running the same.  Here is the things I have done.  Installed the framework as per ur instruction.  Then, i have started the driver using ant run.driver and then started node using ant run.node and then i tried the ant run.demo2 by keeping both the above things open.  Is that the right way?  or no need to keep the driver and node running?  pls get me an answer urgently.  Then, will it because of the memory problem of my machine?  I have only 256MB RAM.  Pls look into the matter and provide suitable help.

        Thanx in advance.
Regds,
        Abhilash
Logged

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2272
    • JPPF Web site
Problem in running Matrix demo
« Reply #1 on: December 07, 2006, 10:28:32 AM »

Hi Abhilash,

When you run the matrix demo, the ant script (target run.demo2) actually starts 4 applications: a node, a driver, the demo client and the administration tool, each running in its own JVM.

I am afraid 256 MB is not enough memory to run the components.
If you can do without the administration GUI, you can try the following instead:

Edit the build.xml in the demo project using your favorite editor, and add the following target:
Code: [Select]
 <target name="run.demo2.noui">
    <parallel>
      <antcall target="run.driver"/>
      <sequential>
        <sleep milliseconds="1000"/>
        <antcall target="run.node1"/>
      </sequential>
      <sequential>
        <sleep milliseconds="2000"/>
        <antcall target="run.matrix"/>
        <fail status="1" message="Demo has ended normally."/>
      </sequential>
    </parallel>
  </target>


then run ant run.demo2.noui

Let me know if that works for you.

-Laurent
Logged

Abhilash K

  • JPPF Grand Master
  • ****
  • Posts: 64
Working of Matrix demo
« Reply #2 on: December 07, 2006, 01:00:10 PM »

Hii lolocohen,

         Thanx and now its working without any probs.  I am relatively new in this JPPF.  Well, could you pls give me an idea of how this matrix demo parallelise the tasks and giving to driver?  Tell me which all source files, i have to verify.  How can I feel the difference in a normal Client-Server and JPPF architecture?  Expecting a reply.

Regds,
          Abhilash
Logged
Pages: [1]   Go Up
 
JPPF Powered by SMF 2.0 RC5 | SMF © 2006–2011, Simple Machines LLC Get JPPF at SourceForge.net. Fast, secure and Free Open Source software downloads