Code to perform a manual GC for running JVM

Hi,
Can anyone share the code to connect to a running JVM and perform a manual garbage collection when the heap size goes beyond say 1.2GB or so.
thanks
vbe

vbejava wrote:
Fine, agreed. but "may not be" can be some time "may be" rite!!! so whenever possible let it do that !!
As of now, I have configured an OEM alert which will send an email whenever the Heap Size goes beyond 1.3GB. Then I use the button "Perform GC" in the jconsole which help in reducing the Heap Size and there by avoiding OutOfMemory error.
All I want is to do this "Perform GC" used by jconsole, using a java code. The java code should connect to a running JVM, check the Heap Size every 5minutes or so, and perform GC
Is there a code which can perform this?
thanks,
vbeDon't bother. The gc is guaranteed to have run before an OutOfMemory error is thrown.

Similar Messages

  • When to perform Manual update for a job

    Hi Sap Gurus,
          I am new SAP-BI Can anyone tell me exactly why do we perform Manual Update for a job  and when to perform Manual Update for a job  and What exactly Manual Update does

    Hi Antony,
    In RSMO, BI Monitor you would be seeing several jobs that has been run for the day. In some instances there could be certain jobs that has failed. These could be because of certain packages which have failed to load. In these cases the request need not be set to error and reloaded again. The manual update can be done for those packages so as to save the entire load once again.
    Regards
    Govind

  • JSP codes for running a JAVA program

    hello...
    does anyone know the JSP codes for running a Java program from my web page?? i mean i already have my java program compiled... and i just want this java program to run in the background when I click on a button or a link...
    Any idea about this?
    plz advice..
    avi

    yes... u r somewhat right... but this runs on Jakarta Tomcat...
    i'm using the Apache Http Server together with the ServletExec AS which enable the Apache server to run JSP..
    I've created a package where i've put my classes...
    WEB-INF/classes/tbd(package name)/my classes
    and i've added.. package name.. in my java program..
    and then in jsp... i've written..
    <%@ page import="tdb.*"%>
    <jsp:useBean id="exec" class="tdb.textdb" />
    <%exec.convert_data();%>
    but when i run the page it says the package does not exist...
    can anyone tell where to place the folder WEB-INF so that it can run fine?
    thx
    avi

  • Cannot write the suitable source codes for running program

    I want to write a program that help student to compile program and run program by using some test cases. For the compiled part, i have been wrote it successfully, but for the run part, i cannot pass the test cases to the program for running. Could any ppl help me to find the problem on the followng codes, why the error will on there? how do i change it? Thanks!
    //<!--start get Program Test Case File-->
    java.io.BufferedReader TestCaseBuf = null;
    Connection con = null;
    Statement stmt = null;
    ResultSet rs = null;
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    con = DriverManager.getConnection("jdbc:odbc:compas", "sa", "password");
    stmt = con.createStatement();
    String strSQL = "SELECT testValue FROM TEST_CASE WHERE progID='"+progID+"'";
    stmt = con.createStatement();
    rs = stmt.executeQuery(strSQL);
    try
    while (rs.next())
    TestCaseBuf = new java.io.BufferedReader(new java.io.InputStreamReader(rs.getBinaryStream("testValue")));                         
    finally
    if (rs != null)
         rs.close();
    if (stmt != null)
         stmt.close();
    //<!--end get Program Test Case File-->
    //<!--start run program -->
    String[ ] args2 = new String[ ]
         "java", "-cp", System.getProperty("user.dir"), FileName
    try
         Runtime rt = Runtime.getRuntime();
         Process proc = rt.exec(args2);
         java.io.BufferedReader ireader = new java.io.BufferedReader(new java.io.InputStreamReader(proc.getInputStream()));
         java.io.PrintWriter pwriter = new java.io.PrintWriter(proc.getOutputStream());
    String atestcase = null;
         String line= null;
         try
    while ((atestcase = TestCaseBuf.readLine()) != null) <------------I found that error seems on here!!!!
         pwriter.write(atestcase+"\r");
    pwriter.flush();     
    if (atestcase != null)
              if ((line = ireader.readLine()) != null)
              FileOutput = FileOutput + line +"\r\n";
    else {break; }
         } //while
         catch (java.io.IOException e)
         out.println("[IOException]. Printing Stack Trace");
         e.printStackTrace();
         pwriter.close();
         ireader.close();
    catch (java.io.IOException e)
    out.println("[IOException]. Printing Stack Trace");
    e.printStackTrace();
    //<!--end run program -->

    Whats the error message??
    Just a guess, but could be (without seeing the error) that you've already closed the TestCaseBuf reader by closing the result set, hence when you go to read it, you're reading on closed reader.
    Give this a go...Put the //<!--run program --> code into the result set while loop
    while (rs.next())
    TestCaseBuf = new java.io.BufferedReader(new java.io.InputStreamReader(rs.getBinaryStream("testValue")));
    //<!--start run program -->
    ...some code
    //<!--end run program -->
    } Hard to tell without the error message

  • Steps for Running T-code MIRO in the background

    HI,
    Plz let me know the steps for running T-code MIRO in the background Programatically.
    Regards

    Hi
    check following link it will help to you
    [http://help.sap.com/saphelp_46c/helpdata/en/a8/b992bd452b11d189430000e829fbbd/content.htm]
    [invoice verification in background;
    Regards
    Kailas Ugale

  • [svn:bz-trunk] 18814: Add manual test for BLZ-594 with instructions on how to run the test.

    Revision: 18814
    Revision: 18814
    Author:   [email protected]
    Date:     2010-11-24 09:31:56 -0800 (Wed, 24 Nov 2010)
    Log Message:
    Add manual test for BLZ-594 with instructions on how to run the test.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/BLZ-594
    Modified Paths:
        blazeds/trunk/qa/apps/qa-manual/WEB-INF/flex/remoting-config.mods.xml
    Added Paths:
        blazeds/trunk/qa/apps/qa-manual/WEB-INF/src/test/
        blazeds/trunk/qa/apps/qa-manual/WEB-INF/src/test/RpcTest.java
        blazeds/trunk/qa/apps/qa-manual/bugs/BLZ-594/
        blazeds/trunk/qa/apps/qa-manual/bugs/BLZ-594/BLZ-594.mxml
        blazeds/trunk/qa/apps/qa-manual/bugs/BLZ-594/readme.txt

    You do have a very complex looking site and may need several tables in mysql to handle all that data. If you knew to phpmysql I would suggest taking a look at this tutorial it will help get you started in understanding how to $_GET info from a database and also how to $_POST data to a database. I am no expert just learning myself and I found this very helpful. This is the link http://www.adobe.com/devnet/dreamweaver/articles/first_dynamic_site_pt1.html
    There are also many tutorials on Youtube to help build a CMS Content Management Site I would suggest the following: -
    http://www.youtube.com/user/phpacademy
    http://www.youtube.com/user/betterphp
    http://www.youtube.com/user/flashbuilding
    And many more on my channel here
    http://www.youtube.com/user/Whisperingonthewind
    CMS's are easier to maintain, add edit and delete content.
    I have also recently bought a Book by David Powers Training from the Source very helpful.
    Anyway hope you get it sorted.

  • Trying for Run Direct Cash Flow through Trasaction code FSI0

    Dear Friends,
    When I am trying for Run Direct Cash Flow through Trasaction code FSI0 then it is giving error Financial Statement veriosn INT doesnt exist...
    I want to Assign my Company Financial Statement veriosn MFSV instead of INT
    can u please tel me how to Assing my compnay Financial Statement veriosn
    please help me gurus...
    Thanks,
    Srem

    Hi
    Can get the output in the reort by assigning your Chart of account and GL accounts pertaining to your COA. You have to click on the change Icon otherwise it will show as greyed out.
    1) Preparation of FSV is a good option but how will you address "Change in receivables" like that items in FSV?
    2) GL's can be linked to the report as told earlier.
    3) Still in the process of exploring.
    4) "Relevance to Cash flow" tick has no relavance with the cash flow report.
    5) Activation of Cash management has no relevance with cash flow report.
    6) There is no special configuration required for Cash flow.
    The only problem here is getting the output for items like change in inventory etc. If this could also be brought in this report, it would be a wonderful report.
    GL accounts can be mapped with this report. The problem you may be facing is due to the reason that you might not have clicked the change icon, that is why it is showing as greyed out.
    Cheers
    V.Krishnan

  • Packages needed for running GNome and GTK Apps

    On my desktop machine, a SPARC Sunblade 1500 I use the Java Desktop and successfully run such things as gedit, gnome_terminal, Eclipse, and Oracle's SQL Developer. I'm trying to determine what packages I need to have installed on my development server box so that I can run those applications there (still using my desktop as the X server).
    The server is a Sun Fire V240 running SunOS 5.10 , 11/06 , 118833-36. It has 4G of RAM. Gedit, gnome-terminal, and eclipse come up but they behave poorly. In additions some visual components appear only slowly or never at all: the gnome-terminal scroll bar doesn't show except for a gray rectangle the length of the screen. Menus in eclipse are painfully slow to appear and react.
    Any idea what is missing from the installation? Thanks for any help you can give.
    Tom True

    I apologize in advance for not being able to provide a specific answer to the
    problem you presented, but hopefully this might eliminate a few variables
    from the equation.
    When I need to find missing packages, I always use "pkginfo" on each box
    and compare lists. (pkginfo, pkginfo -x, pkginfo -l)
    When I can't find the answer there, I go ahead and bring my machines up to
    date with the latest Recommended patch cluster (following the directions on
    Jumbo patches will prevent a lot of problems i.e. use single-user mode, do
    not use -nosave option, and patch twice***see below)
    Regarding the display issues, here are some of the things I would
    check for (most of these should not matter if they differ, but it helps in
    overall troubleshooting)
    Are the locales the same ISO8859-1 vs. ISO8859-15
    (/etc/default/init)
    How is the network traffic between the two?
    Do the SB1500 and the V240 have issues resolving each other's I.P.?
    (/etc/resolv.conf /etc/inet/hosts /etc/nsswitch.conf)
    Are they both patched to the latest and greatest Recommended patch levels
    ( ***see latest README for 10_Recommended.zip for new warnings)
    differing versions of SSH? OpenSSH vs. ssh.com vs. Sun_ssh 1.1
    If they used the same internal disk drive, I would dd the good one, and take
    the copy to a V240 and see what happened on a boot -rv. Unfortunately, they
    do not in this case.
    CLUSTER_README
    NAME: Solaris 10 Recommended Patch Cluster
    DATE: May/22/07
    WARNING!! IT IS HIGHLY RECOMMENDED that the installation of this patch
    cluster be performed in single-user mode (Run Level S).
    ************** CAUTION:**************
    This cluster contains kernel patch 118833-36. Depending on the current
    kernel patch revision on the target system, this kernel patch may deliver a
    significant amount of code change. On certain configurations, some manual
    steps may be required in order to safely apply this patch. Please carefully
    review the Special Install Instructions in the 118833-36 README before
    installing this cluster. Note the following in particular :
    Use of the -nosave option with the install_cluster script is NOT
    Recommended, see 118833-36 README NOTE 74.
    Once all preliminary precautions have been taken, the cluster may be
    installed.
    Depending upon the starting patch level of the system, the cluster install
    script may need to be run up to two timeswith a reboot after each run in
    order for all the patches to be installed
    ....

  • Can I upgrade iOS and still retain *everything*, if I didn't authorize Apple ID and didn'nor had I performed a manual backup?

    I am an IT guy here helping 10+ iPad and iPhone users upgrading to iOS 5.  I have finished the first two devices, by the following steps:
    Obtain the user's Apple ID and password
    Get to a clean computer (precisely, logon to a clean profile)
    Authorize the user's ID in iTunes
    Transfer purchases (then it will download all installed apps)
    Maannuly perform a backup (1), just in case.
    Perform iOS5 update following the standard procedure.
    Then during the process, iTunes backs up the device again (I am not sure if this backup (2) has any different from the one that I've done manually), but after everything is done, all apps with their data, account setting, camera roll, even the placing of app icons seemed to be restored to the updated device 100% successfully.
    Deauthorize Apple ID.  "Next one please."
    THAT WAS VERY TIME CONSUMING!!
    My question is, what will happen if I upgrade a device without doing step 1 through 5 first ?  Will backup (2) still backs up everything and restore it,although the user's ID was not authorized in this copy of iTunes?
    If this works then it wil save me a lot of time.  I can't risk to test it because if it doesn't work, I won't have a good backup to restore the user's data.
    (PS) If you asked me why don't I do this on each user's computer?  The reason is because some of them do not have a computer, and for those who does have computer, most of them do not have iTunes installed.

    In summary, there is no way, for me to fully restore all apps that my users had installed (purchased / free), without authorizing their Apple ID's to iTunes on the computer which I am using to perform the iOS upgrade for them ?
    However, I found out it is possible that my nightmare will end after all devices get upgraded to iOS5. Through some tests that I did, I found an interesting fact:
    - Backup to iTunes:
    You need to authorize every single Apple ID on iTunes, so it can back up apps and restore for you.
    - Backup to iCloud:
    Since there is no action of authorizing, it will backup and restore all of your apps, whcih were installed by different Apple ID, or totally different than the ID of iCloud account. 
    *I tested this scenario by backing up a device with only 2 apps installed by 2 diffrent Apple ID's (of course, one of them is used as iCloud account to back up), this device has never been connected to iTunes on a computer, I performed a backup to cloud, wipe the device, restore from the cloud, and both apps, purchased by different Apple ID's, were restored!
    But I need to run more tests and confirm that it works.

  • Error Code 8024200D while installing update KB3000850 for Windows 8.1

    Error Code 8024200D while installing update KB3000850 for Windows 8.1
    I have been prompted for the last 10 days to install the important update KB3000850 in my laptop, but the installation fails every time.
    Two days ago, on March the 12<sup>th</sup>, I installed 31 updates without any problem. What is wrong with this particular update?
    You will find below my dialogue with Microsoft Support Engineer, Mr Niranjan Manjhi, who referred me to you:
    Hi Michelle,
    Thank you for posting your query in Microsoft Community.
    I understand that you are unable to install the a specific update KB3000850. I will be happy to assist you with your query. Let me ask you;
    Is your computer connected to domain?
    Which security software is installed in the      computer?
    Do you remember making any specific change in the      computer prior to the issue?
    This November update rollup also includes all previous updates since the previous image update in April 2014 and this includes performance and reliability
    improvements.
    Cause:
    This issue occurs because a process keeps a file in the component store open. Therefore, the file cannot be deleted or overwritten. Let's try the methods below and
    check the status.
    Method 1: Depending on the architecture of your
    Windows 8.1 operating system, I would suggest you to install the following package first and then try installing the KB3000850.
    All supported x86-based versions of Windows 8.1: [link] Download the package now.
    All supported x64-based versions of Windows 8.1:
    [link] Download the package now. 
    Restart is required.
    Method 2:
    If the issue still persists, run the Windows Update Troubleshooter and check the status.
    Click to run
    [link] Windows Update Troubleshooter
    Also refer to:
    [link] Troubleshoot problems with installing updates
    Hope this information is helpful. Please feel free to reply in case you face any other issues with Windows in future.
    Regards,
    Niranjan Manjhi
    Dear Niranjan,
    Thank you for your answer.
    To answer your questions:
    1) Yes, my laptop is connected to the domain,
    2) My security software is McAfee Total Protection, the same I use for my PC running Windows 7 XP,
    3) I did not make any specific change to the laptop. It is true though that I run regularly McAfee´s QuickClean.
    In your answer, you suggested 2 methods for resolving the problem.
    I chose to apply first the second one, i.e. I ran once again the Windows Update Troubleshooter, which revealed again the following status:
    Potential Windows Update Database error detected Ox800F08F: Not fixed
    Windows Update components must be repaired: Fixed
    And a last information: Yesterday, McAfee´s Vulnerability Scanner was automatically activated, showing as "critical" the update in question ("important" according to Windows)!
    As for applying the first method you suggested, I will need the services of a professional, someone more IT literate than myself.
    Michelle
    Hi Michelle,
    Thank you for keeping us updated on the issue.
    Since the computer is connected to domain, I would request you to post your query in the TechNet forums as your question is beyond the scope of what
    is typically answered in this consumer forum and would be better suited for the IT Pro audience on TechNet.
    Please post your question in the link TechNet Forums.
    Regards,
    Niranjan Manjhi

    Hi there @Achintya-only
    Welcome to the HP Support Forums! It is a great place to find the help you need, both from other users, HP experts and other support personnel.
    I see that you are getting an error code, when you try to install Windows 8.1 from USB or DVD. I am happy to assist.
    Just to clarify, you are using a standalone Windows installation disk, you are not using a factory recovery image. Is that correct?
    Have you run the hardware diagnostics on your notebook? HP Notebook PCs - Testing for Hardware Failures (Windows 8)
    What operating system was on the system before, and have you made a set of recovery media, for your original factory installation?
    Please let me know what you find.
    Malygris1
    I work on behalf of HP
    Please click Accept as Solution if you feel my post solved your issue, it will help others find the solution.
    Click Kudos Thumbs Up on the right to say “Thanks” for helping!

  • How to Perform Forced Manual Failover of Availability Group (SQL Server) and WSFC (Windows Server Failover Cluster)

    I have a scenario with the three nodes with server 2012 standard, each running an instance of SQL Server 2012 enterprise, participate in a
    single Windows Server Failover Cluster (WSFC) that spans two data centers.
    If the nodes in the primary data center are unavailable due to data center outage. Then how I can able to access node in the WSFC (Windows Server Failover Cluster) in the secondary disaster recovery data center automatically with some script.
    I want to write script that can be able to check primary data center by pinging some IP after every 5 or 10 minutes.
    If that IP is unable to respond then script can be able to Perform Forced Manual Failover of Availability Group (SQL Server) and WSFC (Windows Server Failover Cluster)
    Can you please guide me for script writing for automatic failover in case of primary datacenter outage?

    please post you question on failover clusters in the cluster forum.  THey will explain how this works and point you at scipts.
    You should also look in the Gallery for cluster management scripts.
    ¯\_(ツ)_/¯

  • How to Perform Forced Manual Failover of Availability Group (SQL Server) and WSFC (Windows Server Failover Cluster) with scrpiting

    I have a scenario with the three nodes with server 2012 standard, each running an instance of SQL Server 2012 enterprise, participate in a
    single Windows Server Failover Cluster (WSFC) that spans two data centers.
    If the nodes in the primary data center are unavailable due to data center outage. Then how I can able to access node in the WSFC (Windows Server Failover Cluster) in the secondary disaster recovery data center automatically with some script.
    I want to write script that can be able to check primary data center by pinging some IP after every 5 or 10 minutes.
    If that IP is unable to respond then script can be able to Perform Forced Manual Failover of Availability Group (SQL Server) and WSFC (Windows Server Failover Cluster)
    Can you please guide me for script writing for automatic failover in case of primary datacenter outage?

    You are trying to implement manually what should be happening automatically in the cluster. If the primary SQL Server becomes unavailable in the data center, it should fail over to the secondary SQL Server automatically.  Is that not working?
    You also might want to run this configuration by some SQL experts.  I am not a SQL expert, but if you have both hosts in the data center in a cluster, there is no need for replication between those two nodes as they would be accessing
    the database from some form of shared storage.  Then it looks like you are trying to implement Always On to the DR site.  I'm not sure you can mix both types of failover in a single configuration.
    FYI, it would make more sense to establish a file share witness in your DR site instead of placing a third node in the data center for Node Majority quorum.
    . : | : . : | : . tim

  • Manual reservation for order category 20 not allowed

    Hi,
    We are getting the error message "Manual reservation for order category 20 not allowed" when trying to manually create a Reservation Order charged to a network through transaction code MB21.
    Anyone knows how to solve this?
    Will appreciate feedback. Thanks!

    Hi,
    You would need to add this component in your WBS element & then the MRP run will generate a reservation for this. You cannot create a manual reservation using 281 mvt in MB21.
    Refer sap note 43924, read the paragrah under 'cause and prerequisites' means that according to SAP's standard design, reservation for Network is supposed to be automatic, not manual. However, if manual reservation is really needed, do apply the solution provided.
    Hope the above clarifies.
    Regards,
    Vivek

  • Perform Forced Manual Failover of Availability Group (SQL Server 2012) and WSFC (Windows Server Failover Cluster)

    I have a scenario with the three nodes with server 2012 standard, each running an instance of SQL Server 2012 enterprise, participate in a
    single Windows Server Fail-over Cluster (WSFC) that spans two data centers.
    If the nodes in the primary data center are unavailable due to data center outage. Then how I can able to access node in the WSFC (Windows Server Fail-over Cluster) in the secondary disaster recovery data center automatically with some script.
    I want to write script that can be able to check primary data center by pinging some IP after every 5 or 10 minutes.
    If that IP is unable to respond then script can be able to Perform Forced Manual Fail-over of Availability Group (SQL Server) and WSFC (Windows Server Fail-over Cluster)
    Can you please guide me for script writing for automatic fail-over in case of primary data-center outage?

    +1 to David's comment. I would not suggest to run a script automatically. During such failover you might have data loss and decision has to be made with business owners during disaster.
    During such situation, you need to start cluster service in force quorum mode (/fq switch) and then perform manual failover of AG to DR site.
    Balmukund Lakhani
    Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
    This posting is provided "AS IS" with no warranties, and confers no rights.
    My Blog |
    Team Blog | @Twitter
    | Facebook
    Author: SQL Server 2012 AlwaysOn -
    Paperback, Kindle

  • PyTyle 2: On-demand automatic/manual tiling for EWMH compliant WM's

    Hello all!
    I'd like to announce the availability of my second version of PyTyle, which is a complete re-write.
    PyTyle 2 can be installed along side PyTyle 1. But only one can be running at the same time.
    PyTyle is a tiling manager that works with EWMH compliant window managers (like Openbox and KWin) to provide functions for tiling windows. Both Xmonad and Musca have influenced the feature set. Some of the key features include, but are not limited to:
    * On-demand tiling on a per workspace per monitor basis. Tile workspace 2 while workspace 0 is left in a floating model. Or, if you have multiple monitors, tile one screen but not the other.
    * Automatic layouts, including the classic "Vertical" and some new additions as well. Based on Xmonad.
    * Manual tiling -- this is new! Create your own layout on the fly. Based on Musca. I consider this aspect of PyTyle the least stable, though.
    * Uses the new XCB library (or, more aptly, xpyb)
    * Much better support for undecorated windows--including drawing borders (like Xmonad).
    * Drag and drop windows to other positions in any tiling layout.
    * Auto-detection of any panels (i.e., windows that set struts) even on multi-monitor displays.
    * Move windows to and from a floating state when the workspace its on is in tiling mode.
    * A robust configuration file that allows one to change all keybindings, a multitude of options, and layout specific settings. (i.e., border color/size, ignore certain windows, margins, padding). Options can be set based on workspace, monitor, and tiler (and any combination).
    See my Google project page for more info: http://code.google.com/p/pytyle/
    Dependencies
    The X Python Binding (xpyb)
    Installation
    PyTyle 2 can be found in the aur: http://aur.archlinux.org/packages.php?ID=42541
    Execution
    After installation, simply run
    pytyle2
    on the command line.
    Then press Alt + a.
    Configuration
    After you have started PyTyle for the first time, a new configuration directory should appear in your XDG_CONFIG_HOME directory (usually ~/.config/) called pytyle2. Inside this directory is config.ini. All of the configuration options are stored there. I haven't really documented the options yet, so your guess will have to do at the moment.
    Help
    You can either post here or use the mailing list: http://groups.google.com/group/pytyle
    Notes
    PyTyle 2 is still highly beta. I've developed it on Openbox, and tried to maintain parity with KWin at the same time. I haven't tested it with any other window manager yet. You should be golden if you're running Openbox or KWin. However, I recommend that any and all composite settings be turned off before using PyTyle... You don't have to, but it can be a bit ugly if you don't. See for yourself :-)
    Also, I'm closing out my first semester in grad school at the moment, so my replies in the next week or so might be a bit sparse. After that though, I'll pick back up with development/bug fixing.
    Last edited by BurntSushi (2010-12-03 05:22:27)

    Just installed pytyle2. launched it and got this output in cli
    martins@localhost ~]$
    martins@localhost ~]$pytyle2
    Could not grab key: alt-shift-right
    Could not grab key: alt-shift-down
    Could not grab key: alt-shift-up
    Could not grab key: alt-shift-left
    sometimes i had more keys. When i tried doing alt+a to start it i got this
    Traceback (most recent call last):
    File "/usr/bin/pytyle2", line 49, in <module>
    d = Dispatcher(event_data)
    File "/usr/lib/python2.7/site-packages/pt/dispatcher.py", line 20, in __init__
    getattr(self, self._event_data['event'])()
    File "/usr/lib/python2.7/site-packages/pt/dispatcher.py", line 55, in KeyPressEvent
    Tile.dispatch(state.get_active_monitor(), cmd)
    File "/usr/lib/python2.7/site-packages/pt/state.py", line 37, in get_active_monitor
    return get_monitor(wsid, mid)
    File "/usr/lib/python2.7/site-packages/pt/state.py", line 53, in get_monitor
    return Workspace.WORKSPACES[wsid].get_monitor(mid)
    File "/usr/lib/python2.7/site-packages/pt/workspace.py", line 37, in get_monitor
    return self.monitors[mid]
    KeyError: -1
    as suggested somewhere up in the thread output from xprop
    [martins@localhost ~]$xprop -root
    _NET_WM_USER_TIME(CARDINAL) = 2886859
    _NET_ACTIVE_WINDOW(WINDOW): window id # 0x2200022
    ESETROOT_PMAP_ID(PIXMAP): pixmap id # 0x2000001
    _XROOTPMAP_ID(PIXMAP): pixmap id # 0x2000001
    _NET_CLIENT_LIST(WINDOW): window id # 0x1800002, 0x1400006, 0xe000af, 0x2200022
    _NET_SHOWING_DESKTOP(CARDINAL) = 0
    _NET_CURRENT_DESKTOP(CARDINAL) = 0
    _NET_DESKTOP_NAMES(UTF8_STRING) = 0x44, 0x65, 0x73, 0x6b, 0x74, 0x6f, 0x70, 0x20, 0x31, 0x0, 0x44, 0x65, 0x73, 0x6b, 0x74, 0x6f, 0x70, 0x20, 0x32, 0x0, 0x44, 0x65, 0x73, 0x6b, 0x74, 0x6f, 0x70, 0x20, 0x33, 0x0, 0x44, 0x65, 0x73, 0x6b, 0x74, 0x6f, 0x70, 0x20, 0x34, 0x0
    _NET_WORKAREA(CARDINAL) = 1, 20, 1678, 1010, 1, 20, 1678, 1010, 1, 20, 1678, 1010, 1, 20, 1678, 1010
    _NET_DESKTOP_VIEWPORT(CARDINAL) = 0, 0, 0, 0, 0, 0, 0, 0
    _NET_NUMBER_OF_DESKTOPS(CARDINAL) = 4
    _NET_DESKTOP_GEOMETRY(CARDINAL) = 1680, 1050
    _NET_CLIENT_LIST_STACKING(WINDOW): window id # 0x1800002, 0x1400006, 0xe000af, 0x2200022
    _OB_THEME(UTF8_STRING) = 0x43, 0x68, 0x69, 0x6c, 0x61
    _OB_VERSION(UTF8_STRING) = 0x33, 0x2e, 0x34, 0x2e, 0x31, 0x31, 0x2e, 0x32
    _NET_SUPPORTED(ATOM) = _NET_SUPPORTING_WM_CHECK, _NET_WM_FULL_PLACEMENT, _NET_CURRENT_DESKTOP, _NET_NUMBER_OF_DESKTOPS, _NET_DESKTOP_GEOMETRY, _NET_DESKTOP_VIEWPORT, _NET_ACTIVE_WINDOW, _NET_WORKAREA, _NET_CLIENT_LIST, _NET_CLIENT_LIST_STACKING, _NET_DESKTOP_NAMES, _NET_CLOSE_WINDOW, _NET_DESKTOP_LAYOUT, _NET_SHOWING_DESKTOP, _NET_WM_NAME, _NET_WM_VISIBLE_NAME, _NET_WM_ICON_NAME, _NET_WM_VISIBLE_ICON_NAME, _NET_WM_DESKTOP, _NET_WM_STRUT, _NET_WM_STRUT_PARTIAL, _NET_WM_ICON, _NET_WM_ICON_GEOMETRY, _NET_WM_WINDOW_TYPE, _NET_WM_WINDOW_TYPE_DESKTOP, _NET_WM_WINDOW_TYPE_DOCK, _NET_WM_WINDOW_TYPE_TOOLBAR, _NET_WM_WINDOW_TYPE_MENU, _NET_WM_WINDOW_TYPE_UTILITY, _NET_WM_WINDOW_TYPE_SPLASH, _NET_WM_WINDOW_TYPE_DIALOG, _NET_WM_WINDOW_TYPE_NORMAL, _NET_WM_ALLOWED_ACTIONS, _NET_WM_ACTION_MOVE, _NET_WM_ACTION_RESIZE, _NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_SHADE, _NET_WM_ACTION_MAXIMIZE_HORZ, _NET_WM_ACTION_MAXIMIZE_VERT, _NET_WM_ACTION_FULLSCREEN, _NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_ACTION_CLOSE, _NET_WM_ACTION_ABOVE, _NET_WM_ACTION_BELOW, _NET_WM_STATE, _NET_WM_STATE_MODAL, _NET_WM_STATE_MAXIMIZED_VERT, _NET_WM_STATE_MAXIMIZED_HORZ, _NET_WM_STATE_SHADED, _NET_WM_STATE_SKIP_TASKBAR, _NET_WM_STATE_SKIP_PAGER, _NET_WM_STATE_HIDDEN, _NET_WM_STATE_FULLSCREEN, _NET_WM_STATE_ABOVE, _NET_WM_STATE_BELOW, _NET_WM_STATE_DEMANDS_ATTENTION, _NET_MOVERESIZE_WINDOW, _NET_WM_MOVERESIZE, _NET_WM_USER_TIME, _NET_FRAME_EXTENTS, _NET_REQUEST_FRAME_EXTENTS, _NET_RESTACK_WINDOW, _NET_STARTUP_ID, _NET_WM_SYNC_REQUEST, _NET_WM_SYNC_REQUEST_COUNTER, _NET_WM_PID, _NET_WM_PING, _KDE_WM_CHANGE_STATE, _KDE_NET_WM_FRAME_STRUT, _KDE_NET_WM_WINDOW_TYPE_OVERRIDE, _OB_WM_ACTION_UNDECORATE, _OB_WM_STATE_UNDECORATED, _OPENBOX_PID, _OB_THEME, _OB_CONFIG_FILE, _OB_CONTROL, _OB_VERSION, _OB_APP_ROLE, _OB_APP_NAME, _OB_APP_CLASS, _OB_APP_TYPE
    _NET_SUPPORTING_WM_CHECK(WINDOW): window id # 0x1a00073
    _OPENBOX_PID(CARDINAL) = 14943
    _XKB_RULES_NAMES(STRING) = "evdev", "pc104", "lv", "apostrophe", "terminate:ctrl_alt_bksp"
    XFree86_VT(INTEGER) = 8
    output from wmctrl
    [martins@localhost ~]$wmctrl -lG
    0x01800002 -1 -5 1028 1691 26 localhost Conky (localhost)
    0x01400006 -1 0 0 1680 20 N/A tint2
    0x00e000af 0 3 68 1676 985 localhost PyTyle 2: On-demand automatic/manual tiling for EWMH compliant WM's (Page 1) / Community Contributions / Arch Linux Forums - Namoroka
    0x02200022 -1 1 20 1678 388 localhost Guake!
    version: pytyle2-hg 2.0.0-1

Maybe you are looking for

  • Word wrap with jLabel

    Is it possible to word-wrap text in a jLabel field? If not, what would be a good choice of component?

  • Customer Payament History

    Hi Gurus, I want to use the customer payment history report (S_ALR_87012177) but currently, no data is appearing because the record payment history indicator in the customer master had not been set. I went ahead and ticked this off. Now that the reco

  • Multiple Selection in Search Result List in PCUI

    Hi, Our requirement is to allow creation of new records in list view of the PCUI application CRMM_ACCOUNT. I'm using old floor plan CRM 4.0 to meet this requirement. But this is causing a problem. It's not allowing multi select in the search result l

  • Path.To.MovieClip?

    Hi, I have this event which is not working and I am stumped! on(rollOver) { _root.mc_home.gotoAndStop("over"); _root.mc_home.mc_homemove.gotoAndPlay("rollover"); Instance mc_home consists of 2 keyframes labelled 'out' and 'over'. Keyframe one has a s

  • I want to create three graphs in web template

    dear all I want to create three graphs in web template the graphs's type is lines top 1 and worst 3 will display in graph first is seven days data second is seven weeks data last is six months data how to create those pls give me some advice thanks