Results 1 to 5 of 5

Thread: Purify and IceBox services

  1. #1
    xdm's Avatar
    xdm
    xdm is offline ZeroC Staff
    Name: Jose Gutierrez de la Concha
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Sep 2003
    Location
    La Coruņa, Spain
    Posts
    588

    Purify and IceBox services

    Hello all

    any body know if is posible check icebox services with purify?

    the run command for purify only acept executables, i try to purify icegridregistry.exe but when do it this i donīt see the memory allocations of my services.

    other way to do it, is rewrite my icebox services as server executables but i trying to aboid this extra work

    any ideas are wellcome

    thanks

  2. #2
    bernard's Avatar
    bernard is offline ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    Yes, you can purify IceBox services. Instead of
    Code:
     iceboxd --Ice.Config=config
    you run

    Code:
     purify iceboxd --Ice.Config=config
    (I recommend to purify debug builds!)


    The icegridregistry is not an IceBox service, so I don't see the relationship with IceBox or why purifying icegridregistry would tell you anything about your own services.

    Cheers,
    Bernard
    Bernard Normier
    ZeroC, Inc.

  3. #3
    xdm's Avatar
    xdm
    xdm is offline ZeroC Staff
    Name: Jose Gutierrez de la Concha
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Sep 2003
    Location
    La Coruņa, Spain
    Posts
    588
    Hi bernard

    i comment IceGrid beacuse i use IceGridregistry to deploy my services

    can i put the purify command in the application descriptor?

    Code:
      <icebox id="SessionService"
                    exe="purify"
                    activation="on-demand">
                    <option>c:\Ice-3.0.1/bin/iceboxd.exe</option>
                    <service name="Session" entry="App:create">
                        <adapter name="${service}" endpoints="tcp">
                                <object 
                                    identity="${sessionServiceId}" 
                                    type="::Oz::App::Service"/>
                                <object 
                                    identity="${service}-SessionManager" 
                                    type="::Oz::App::SessionManager"/>
                                <object 
                                    identity="${service}-permission-verifier" 
                                    type="::Glacier2::PermissionsVerifier"/>
                        </adapter>
                        
                        <!-- Id para identificar este servicio-->
                        <property name="serviceId" value="${sessionServiceId}"/>
                        <!-- Id del servicio DomainManager-->
                        <property name="domainManagerServiceId" value="${domainServiceManagerId}"/>
                        <!-- Id del servicio FileManager-->
                        <property name="fileManagerServiceId" value="${fileServiceManagerId}"/>
                        <!-- Id del servicio DomainManager-->
                        <property name="metaManagerServiceId" value="${metaServiceManagerId}"/>
                        <!-- Id del servicio domains que en el cual se logean los usuarios-->
                        <property name="domainServiceId" value="${domainServiceId}"/>
                        <!--Nombre del dominio que se usa-->
                        <property name="domainName" value="${domainName}"/>
                    </service>
                </icebox>
    should this work?

    thanks

  4. #4
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    Hi,

    Yes, I don't see why it wouldn't work, I suggest that you just give it a try and see how it goes .

    Another option would be to disable your server to prevent the node from activating it and start it manually from the command line using the configuration file generated by the IceGrid node in the <nodedb>/servers/<server id>/config directory (in addition to the configuration file, you'll also have to pass the --Ice.ServerId=<server id> property and the --Ice.Default.Locator=<proxy of the location service> property).

    Cheers,
    Benoit.

  5. #5
    xdm's Avatar
    xdm
    xdm is offline ZeroC Staff
    Name: Jose Gutierrez de la Concha
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Sep 2003
    Location
    La Coruņa, Spain
    Posts
    588
    I add the purify command to the descriptor and works perfectly

    thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How do I run two services in a single icebox?
    By Gravitas in forum Help Center
    Replies: 3
    Last Post: 03-02-2011, 05:30 PM
  2. IceBox + services in subfolders
    By dmitry.medvedev in forum Help Center
    Replies: 3
    Last Post: 10-10-2008, 02:30 AM
  3. Singleton object for services in an IceBox
    By dmitry.medvedev in forum Help Center
    Replies: 1
    Last Post: 09-25-2008, 09:45 AM
  4. invocation between two services in the IceBox
    By drumnbass in forum Help Center
    Replies: 3
    Last Post: 03-05-2008, 06:32 AM
  5. Share endpoint between services in IceBox
    By rspivak in forum Help Center
    Replies: 2
    Last Post: 04-14-2006, 06:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •