Service start/stop

I am trying out service start/stop between different JVMs but am not seeing what I expected. I have attached a quickly written test program to try out a scenario.
1. Run the attached program (java Test -Dtangosol.coherence.cacheconfig=servicetest.xml) in 2 JVMs. Let's call them JVM1 and JVM2.
2. At the JVM1 command prompt, type: startservice
3. At the JVM1 command prompt, type: startcache
4. At the JVM1 command prompt, type "i" six times. This should insert 6 items into the cache.
5. At the JVM1 command prompt, type "c". Following is what is displayed:
key=4, value=4
key=3, value=3
key=2, value=2
key=1, value=1
key=5, value=5
key=6, value=6
6. At the JVM2 command prompt, type: startservice
7. At the JVM2 command prompt, type: startcache
8. At the JVM2 command prompt, type "c". The six cache items are displayed.
9. At the JVM1 command prompt, type "stopservice". The expectation is that the service on JVM1 is stopped and the cache items on JVM1 are transferred to JVM2.
10. At the JVM2 command prompt, type "c". The following is displayed:
key=4, value=4
key=3, value=3
key=1, value=1
key=6, value=6
Cache items 2 and 5 have disappeared. Why?
Thanks
Ghanshyam<br><br> <b> Attachment: </b><br>Test.java <br> (*To use this attachment you will need to rename 508.bin to Test.java after the download is complete.)<br><br> <b> Attachment: </b><br>Test.class <br> (*To use this attachment you will need to rename 509.bin to Test.class after the download is complete.)<br><br> <b> Attachment: </b><br>servicetest.xml <br> (*To use this attachment you will need to rename 510.bin to servicetest.xml after the download is complete.)

Following is javadoc for the Controllable.shutdown( ) method:
Stop the controllable service. This is a controlled shut-down, and is preferred to the stop() method.
<b>This method should only be called once per the life cycle of the controllable service</b>. Calling this method for a service that has already stopped has no effect.
I might need to expand and shrink the horizontal span of the cache multiple times without having to shutdown the JVM, which means I might need to shutdown the service multiple times, but the javadoc says I can't call shutdown more than once. Is there a different way to perform an orderly service stop?
Thanks
Ghanshyam

Similar Messages

  • Service start stop scripts and Nagios scripts

    Hello. Are there some "official" service start stop scripts somewhere? And: Has somebody already written a Nagios monitoring script for Oracle NoSQL? Thanks, Jesus.

    Hi. Yes, but I mean something like service kvclient start / stop / restart / status, and using e.g. daemon without nohup. Of course one can be written, e.g. I have a simple one based on a script I found in internet long time ago for Cassandra, but then by Murphy's Law you will probably have an "official" one in the .124 version : - ).

  • How to call external processes before & after WL services start/stop

    I set up WL Admin Server and Managed Server to run as Windows services.
    I have the code to retire/re-activate in an ANT script and right now, I execute it via the command line.
    Here's my question
    I want to retire a SOA composite BEFORE my Managed Server Windows service stops and re-activate it AFTER the Window service starts up.
    Do you know how to do that? Or if you have other suggestions, please let me know
    Thanks
    I'm using 11.1.1.2

    I want to retire a SOA composite BEFORE my Managed Server Windows service stops and re-activate it AFTER the Window service starts up.
    This means you need to check for the ManagedServer is in RUNNING state right?
    in WLST you can get State of a given Managed Server with getState() method. write a WLST invoke method in ANT and try.

  • All Windows VM - Virtual Disk Service start/stop every minute

    Dear all
    I recently discovered that all my Windows VM's (2003/2008/2008R2) start and stop the virtual disk service:
    System Log File:
    08:37:27 Virtual Disk Service --> Service started
    08:37:27 Service Control Manager --> The Virtual Disk service entered the running state.
    08:37:28 Virtual Disk Service --> Service stopped
    08:37:28 Service Control Manager --> The Virtual Disk service entered the stopped state.
    and i have this entry every minute.
    I removed the DVD Drive from the VM but no change. What could be the reason for this? All my physical servers with the same backup program haven't this behavior.
    Thanks for any hint
    JBAB

    Just as a follow up:
    Dell know that problem and it will be "fixed" in Version 4.7.
    "In releases of the Host Integration Tools previous to V4.6,  Auto Snapshot Manager would query the entire system state every time a refresh was performed.  In Host
    Integration Tools V4.6 Auto Snapshot Manager will query the entire system state only during the initial load.  After that ASM uses event notifications to keep itself up to date refreshing only these changed items.   However event notifications
    aren’t enough,  to pick up some application changes Engineering implemented a polling mechanism.   The Virtual Disk Service events are a side effect of that polling and are normal and expected.
    However while these messages are entirely benign,  Engineering understands these message could be a concern as  they do fill up the event log and drown out important
    events.  Changes have been added to the V4.7 release of Auto Snapshot Manager giving the user the ability to control how often these refreshes occur along with the option of disabling automatic refreshes and using just a manual refresh button in the GUI."

  • Creating a Business Service for Start/Stop Application Service in CCB 2.3.1

    Hi,
    I'm in the process of creating a BPA script that invokes a Business Service to perform a Start/Stop for a given Account ID/Premise ID combination. The Business Service is using the base Application Service: Start Stop (CILCSSEP). I am moving the Account ID and Premise ID, along with the start date and requested by fields to the data area of the Business Service, prior to invoking it. When I invoke the Business Service via the BPA script, it throws the below error message... I'm at a loss because the BILL_ADDR_SRCE_FLG is being set to a default of "PREM" on the Business Service Schema:
    A Bill Address Source is required on the address override record. Please enter a valid value.
    One of these two is true:
    1) The Bill Route Type on this record has a Bill Routing Method of 'Postall', or
    2) The main customer on the Account has a Quote Route Type with a Quote Routing Method of 'Postal'.
    In either case, the Bill Address Source must be populated with a valid value.
    If you need support please supply the following info to system support:
    Message number: 3, 59204
    Business Service: CMSTARTSERVICE
    Application Service: CILCSSEP
    Schema:
    <schema pageAction="fastChange">
    <accountId mapField="ACCT_ID"/>
    <df mapField="DEFAULT_FOR_FLG"/>
    <startDate mapField="STRT_START_DT"/>
    <startOption mapField="STRT_TYPE_FLG"/>
    <premiseId mapField="STRT_PREM_ID"/>
    <premAddress mapField="ADDRESS1"/>
    <premCity mapField="CITY"/>
    <startCisDiv mapField="STRT_CIS_DIVISION"/>
    <startReqBy mapField="STRT_STRT_REQ_BY"/>
    <bldStrtSaSw mapField="BUILD_START_SA_SW" default="true"/>
    <accountIdtwo mapField="ACCT_ID2"/>
    <mainCustPerId mapField="MAIN_CUST_PER_ID"/>
    <billFrmtFlg mapField="BILL_RTE_TYPE_CD" default="POSTAL" private="true"/>
    <billAddrSrcFlg mapField="BILL_ADDR_SRCE_FLG" default="PREM"/>
    <billAddrSrcFlg2 mapField="BILL_ADDR_SRCE_FLG2" default="PREM"/>
    <startStopTelephoneOverride type="list" mapList="OVRD_PHONE">
    <accountId mapField="ACCT_ID"/>
    <sequence mapField="SEQ_NUM"/>
    <phoneType mapField="PHONE_TYPE_CD"/>
    <internationalPrefix mapField="COUNTRY_CODE"/>
    <phone mapField="PHONE"/>
    <extension mapField="EXTENSION"/>
    <version mapField="VERSION"/>
    </startStopTelephoneOverride>
    <startBtn mapField="ACTION_START_SW" default="true" private="true"/>
    </schema>
    I'm running CC&B 2.3.1 - Any help in pointing me in the right direction to get this working would be greatly appreciated, Thanks!
    Regards,
    Jack

    Hi,
    Can you try and do this transaction online and see if the error occurs as well? If so run it with traces on and check for the details just before the error is thrown. ( you can also switch on debug via the service call, but it may be easier to debug when doing this online. ) I am predicting this error will occur also when you do it online.
    When you are using an Account with its main Person set up with BILL_ADDR_SRC_FLG as PREM you will need a valide PREM_ID on the CI_ACCT record for MAILING_PREM_ID and the premise needs to have a switch set to YES indicating it is a Mailing Address type Premise.
    Good luck
    Arjen

  • Worth it? Auto start/stop services and change iptables rules

    I have recently set up a crontab to start/stop services based on my schedule, such as when I'll be home or away. I intend to only have a service running when I'll probably use it.
    I also integrated rules for iptables into the start/stop of the services (systemd), so they automatically modify rules to accept/reject on their ports when the services start/stop.
    I am behind a router, so I only forward outside ports I use like ssh (which is not on port 22). I manually forward ports, but am looking at UPnP. This is my home network so I should be able to trust the devices on it.
    Now, to my question. Is it worth the time and effort to set this up? Would it be fine to just enable the services I use, let them run and always have firewall ports open for them? I feel like it's good to limit the time that ssh is running, but what about services not open to the Internet? Resources aren't really an issue. What do you guys think?
    I enjoyed learning about systemd, iptables, and cron in the process of setting it up. I'd just like to also learn about how much benefit there actually is, or if anyone has other ideas. Or if it's something that could go on the wiki (not really cron, but maybe the iptables/systemd stuff).

    I'd say, if resources aren't an issue; why limit the time ssh is reachable from the outside? You should have PasswordAuthentication and RootLogin disabled anyway so your vulnerability doesn't really decrease by updating iptables? This script probably works fine until you forget about it and it makes a boo-boo; making your machine unreachable.

  • Apple mobile device service started and stopped

    my iPod touch cant be synced or even recognized on my iTunes and it says i gotta *start the apple mobile device service*.
    i finally found it and it tells me that *"apple mobile device service started and stopped..."*
    how can i fix it?
    help!!!!

    Hello and Welcome to Apple Discussions. 
    Follow the instructions in this article:
    http://docs.info.apple.com/article.html?artnum=307078
    mrtotes

  • I recently started to get an error message "MobileMe Services" have stopped working.  I use Vista.  If I remove the MobileMe program, will it affect syncing with my iPhone or with Google Calendar?

    I recently started to get an error message "MobileMe Services have stopped working".  I use Vista.  If I remove the MobileMe program, will it affect syncing with my iPhone or with Google Calendar?

    No, just uninstall the MobileMe control panel. All Mobileme services have been discontinued, so the control panel is not doing you any good being in there at present.

  • When i plug my ipod in it says ipod cant be read cuz the apple mobile device is not started.And i went to services and apple mobile device properties and start stops in the middle.and its on automatic.and there isnt a stop button.

    when i plug my ipod in it says ipod cant be read cuz the apple mobile device is not started.And i went to services and apple mobile device properties and start stops in the middle.and its on automatic.and there isnt a stop button.when i click start it says the apple mobile device services stopped in the middle then stopped.it said some services stop in the middle if not used by other services.and i just updated itunes before all a this and ever since ive had errors.

    Have you looked at this article:
    iPhone, iPad, iPod touch: How to restart the Apple Mobile Device Service (AMDS) on Windows

  • Mail service on start/stop of services ...

    Hi,
    Please let me know the way to send mail when services are started/stopped in oracle application 11.5.10.2. How to configure this on ibm aix 5.3.
    Thanks,
    Sai Ram

    There is a way to configure emails on startup/shutdown of Concurrent Manager service - but I'm not aware about any such configuration around other services (eg. Apache, Apps Listener, Forms Server etc..)
    I think you'll have to do this outside Oracle's scripts if you wish to set this up - either by wrapping the calls to seeded scripts in your own custom script, or if you want a periodical probing, then via use of cron/scheduler depending on the OS you're on.
    Hope that helps.
    Regards,
    Rakesh
    PS : In addition to the Concurrent Managers, I think you should be also able to achieve this for database services if you wish to do that - by use of startup and shutdown database triggers.

  • Start/stop Grid Control services

    What are the service associated with Grid Control and what are the commands to start/stop them?

    Hi
    To start the grid control you need to start the agent
    and the web components in the oms home along with the agent.
    # Start ALL
    /oracle/product/10.1.0/oms/bin/emctl start agent
    /oracle/product/10.1.0/oms/opmn/bin/opmnctl startall
    /oracle/product/10.1.0/agent/bin/emctl start agent
    # Stop ALL
    /oracle/product/10.1.0/agent/bin/emctl stop agent
    /oracle/product/10.1.0/oms/opmn/bin/opmnctl stopall
    /oracle/product/10.1.0/oms/bin/emctl stop agent
    With best regards
    Shan

  • SQL Command to Start/Stop SQL services for multiple server

    From Central server I want to Start/Stop SQL services and SQL Agent service. Is there any SQL command which I can execute on query analyzer which can Start/Stop SQL services?
    Rahul

    See command line options here using net start
    http://msdn.microsoft.com/en-IN/library/hh403394.aspx
    You can invoke them using xp_cmdshell from management studio as
    ie like below for default instance
    EXEC xp_cmdshell 'net start MSSQLSERVER'
    EXEC xp_cmdshell 'net start SQLSERVERAGENT'
    etc
    and below for named instance
    EXEC xp_cmdshell 'net start MSSQLSERVER$instancename'
    EXEC xp_cmdshell 'net start SQLSERVERAGENT$instancename'
    etc
    and use net stop for stopping services
    EXEC xp_cmdshell 'net start MSSQLSERVER' EXEC xp_cmdshell 'net start SQLSERVERAGENT' etc
    EXEC xp_cmdshell 'net start MSSQLSERVER' EXEC xp_cmdshell 'net start SQLSERVERAGENT' etc
    EXEC xp_cmdshell 'net start MSSQLSERVER' EXEC xp_cmdshell 'net start SQLSERVERAGENT' etc
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Windows Server 2008 - Group policy for domain client to start/stop services installed on it

    Hello Experts
    I am a newbie to windows server administration , though did a Google  , but ended up with these question with my requirements
    I have created a new domain and 2 client/computer (A & B namely) to domain . Now A & B has tomcat server running with port 8080 , 9090 which i have installed
    domain ADMIN account .
    && now i am want to start/stop/restart services enabled for domain users  !! How do i achieve this !!
    basic question : How can i access A & B tomcat services on DOMAIN CONTROLLER server to create a GPO and that are on (A & B)
    what is the easiest way to achieve the same , (if not using GPO)???
    similarly I am looking for many features : where I want to control the permission to user on (A & B ) like : If the binaries of tomcat is available on machine say : A , if the user can install (now
    it ask for ADMIN credentials) 
    Thanks
    Mike~Ed

    Controlling services with Group Policy is done under Computer Configuration\Policies\Windows Settings\Security Settings\System Services.
    The limitation is that system services can only see the services the computer running the Group Policy management console. To access other services, you will either need to create the services on your computer (install the software the adds the service)
    or install the remote server administration toolkit (RSAT) on the computer with the service already on it.
    If my answer helped you, check out my blog:
    Deploy Happiness

  • Using non-administrator user to start/stop services

    We have Crystal Report Server (BOE XI) running on Windows platform.
    Our customer's policy dictates that operator ID are to be use to manage starting/stopping of Crytal Report Server. The operator ID has no administrator rights and it has no access to the Microsoft Management Console.
    Would it be possible to use non-administrator ID to start/stop Crystal Report Server services? Appreciate if anyone could share on the configuration.
    Thank you.

    salafrance wrote:A simple way would be to write a small C program to run systemctl setuid root.
    So perhaps like this?
    #include <stdlib.h>
    #include <unistd.h>
    int main(void)
    execl("/usr/bin/systemctl", "systemctl", "start", "calibre", NULL);
    return(EXIT_SUCCESS);
    compiled it, then "chown root:root test", "chmod u+s test" and it worked.
    But is this safe? I have absolutely no knowledge about potential security issues...
    I also have thought about periodically restarting calibre, but on the Raspberry Pi, with it's slow ARM, the start takes ages and the processor is completely busy with that task for some minutes.
    And that's the reason why I also want to avoid starting an entire second systemd session... Or is this not that resource intensive?

  • Analysis Services started and then stopped, Event ID: 0xC1210000

    I just installed SQL Server 2005 Developer Edition and SP1 and SP2. I cannot start Analysis Services.  The message box states: The SQL Server Analysis Services (MSSQLSERVER) service on Local Computer started and then stopped.     I looked in the log files located at: C:\Program Files\Microsoft SQL Server\MSSQL.2\OLAP\Log and found these entries:
    msmdsrv.log:
    (6/15/2007 10:07:34 AM)
    Message: The service cannot be started: 
    (Source: \\?\C:\Program Files\Microsoft SQL Server\MSSQL.2\OLAP\Log\msmdsrv.log,
    Type: 3, Category: 289, Event ID: 0xC1210000)
    (6/15/2007 10:10:26 AM) Message:
    The service cannot be started: 
    (Source: \\?\C:\Program Files\Microsoft SQL Server\MSSQL.2\OLAP\Log\msmdsrv.log,
    Type: 3, Category: 289, Event ID: 0xC1210000)
    During installation I did get an unhandled exception (I don't know what component caused the exception). I have found this in the SQLDUMPER_ERRORLOG.log file:
    06/14/07 17:39:38, ERROR ,               msmdsrv.exe, Unable to open file C:\Program Files\Microsoft SQL Server\MSSQL.2\OLAP\Data\FlightRecorderCurrent.trc, error 2
    06/14/07 17:39:38, ACTION,               msmdsrv.exe, Watson Invoke: No
    Any ideas how to get this service started?

    Does anyone have any idea on this problem?  My installation of SQL Server Analysis Services worked fine.  I now have the same error as Lucy.  This happened after no upgrading of SQLSERVER.  It must have issues with security patches on the OS, or maybe service packs for Visual Studio (2005).  And no reinstallation of the patch is not the answer (or rebooting).
    The service times out and tells me to check the logs.  The msmdsrv.log file indicates any unhandled exception -
    Message: The service cannot be started: Internal error: An unexpected exception occured. (Source: \\?\C:\Program Files\Microsoft SQL Server\MSSQL.1\OLAP\Log\msmdsrv.log, Type: 3, Category: 289, Event ID: 0xC1210000)
    Message: Service stopped. (Source: \\?\C:\Program Files\Microsoft SQL Server\MSSQL.1\OLAP\Log\msmdsrv.log, Type: 1, Category: 289, Event ID: 0x41210001)
    Message:  (Source: \\?\C:\Program Files\Microsoft SQL Server\MSSQL.1\OLAP\Log\msmdsrv.log, Type: 3, Category: 256, Event ID: 0xC1000016)
    I have tried reinstalling, changed users for the service, changes instance names.  The logging tells me nothing, except there is a big problem.
    I even installed the SQL Server SP2 hoping to fix whatever the problem was.  Now I also have SSIS throwing an exception and wanting to attach a debugger to it on top of my original problem. After reading about all of the problems with SQL Server SP2, I think I created a bigger monster.  Uninstalling leaves around all kind of files, registry entries, and program numbers.
    Thanks for ANY hints to proceed.

Maybe you are looking for

  • Adobe Edge links not working

    Yeah I have also experienced links not working when I import my .oam file from Adobe Edge Animate also. Is there anything the Muse team is doing to fix this issue? I need a response from you guys by the end of the week. my company website is malfunct

  • How can I use this BAPI..Please see

    Hello, Can I simply call the BAPI -> BAPI_SALESORDER_CHANGE to change the date of delivery in a sales order.. how to I call the BAPI if what is want is this: All the items' delivery date should be postponed by 1 day. ie all change to the next day dat

  • Will a library vault created in 3.5.1, open in 3.6.

    I'm considering backing up my Aperture Library to a vault on 3.5.1, before upgrading to 3.6, in the event of a worst case scenario.  Will a vault created in the earlier version, be able to open in 3.6.  I also have two libraries on on 3.5.1, so I'm g

  • Mac Mail slow to sync after upgrade Yosemite 10.10.2 and OS X Server 4.0.3

    We have deployed server OS X Server 4.0.3 and all client computer configured with DNS, Open Directory and Mail Server of OS X Server 4.0.3. It is quick to deliver mail before upgrade. And it is quick to deliver mail from iOS now. But it too slow to u

  • How do I remove 'no sender' messages from my iphone 4?

    Hi, This is my second iPhone and am having the same issue with the 4 as I had with the 3.  E-mails sometimes appear as 'no sender' and 'this message has no content'.  I would like to know how to get them off of the phone since the delete option is no