Conky - multiple instances, eating up CPU like candy

I run a desktop composed of xmonad, dzen2, and conky. I recently modified my conky config, and whereas previously my cpu monitor showed 0% at idle, it now shows 14% at idle. I checked htop and found that the top processes for cpu% were three instances of conky. Can anyone explain why there are multiple conkys spawned, even though my xmonad.hs file only specifies one? And which line in my conky config is taking up so much processing power?
Here is my conkrc:
out_to_x no
background yes
out_to_console yes
update_interval 0.7
short_units yes
TEXT
{${time %a %b %d %Y} - ${time %H:%M:%S}} \
| ${scroll 12 6 $moc_artist - $moc_song} | \
[RAM: $memperc%] \
[CPU: $cpu%] \
[disk I/O: ${diskio /dev/sda}] \
[HDD: ${fs_used /}/${fs_free /} (${fs_used_perc /}%)] \
${if_existing /proc/net/route wlp3s0} [network: ${wireless_essid wlp3s0} (${wireless_link_qual_perc wlp3s0}%)] $else [network: -- ]$endif \
${if_existing /sys/class/power_supply/BAT1} [battery: ${battery_percent BAT1}%] $else [battery: -- ]$endif
my previous config was more or less the same, except that it was all on one line and it didn't have the fancy decision-making stuff thrown in. It also did not have the lovely scrolling bit for the currently playing song.
EDIT:
That lovely scrolling bit was the culprit. Removed it. Maybe I'll put it back when I get a machine with a bigger processor. I'm all about minimizing the system's use of resources, so it might not make it back into the config, even with a better processor.
Conky is still spawning multiple instances, and I can't for the life of me figure out why.
Last edited by ParanoidAndroid (2013-05-15 18:56:12)

Yes it does. And it appears that other things, such as pulseaudio --start, dbus, and a dozen other processes are running duplicates with different pids. I'm checking with atop to see if htop is to blame, but I don't think it's the program.

Similar Messages

  • Multiple instances on single server

    Hi all,
    I have a Solaris 10 server with 2x dual core CPU's.
    I am wondering if it was at all possible to install Business Intelligence Server on this single OS twice? And if it is, can I split the CPU between the different instances?
    The reason for this is that I would like both production and test/development installed onto the same OS to cut costs. But I don't want the test/development instance to use resources that would affect the performance of the production environment.
    Ideally I'd like the 2 instances, with the production instance using 3 cores, and the test/development instance using 1 core. If the RAM could also be split that'd be great.
    Thanks for your help in advance.
    Cheers

    Yes, you can have multiple instances of Presentation Services (PS) ([see my blog posting for details|http://rnm1978.wordpress.com/2009/08/25/multiple-rpds-on-one-server-part-1-the-bi-server/]) which would let you split envs, but you'd do that with a single instance of BI server. I don't know if it's possible to run multiple BI servers
    I don't think you should be trying to do this anyway, several reasons why not:
    1) It's not supported to run multiple PS on one server. That should be reason enough not to do this on prod.
    2) If it's not possible to run multiple BI Servers on one server then you'd end up running one BI Server with dev/test/prod RPDs - you'd never be able to bounce your BI Server for dev work without taking down prod
    3) Any time you needed downtime for dev, you'd affect prod
    4) Any patching you wanted to do on dev might affect prod
    5) Any experimental work you do that crashes dev would affect prod.
    If you only have the one box available to you for costs reasons then you should be looking into virtualisation of some kind, eg http://www.virtualbox.org

  • Support for Multiple instance of Portal2005Q1 on Weblogic8.1sp4

    Has anyone installed multiple instances of Portal server 2005Q1 on a Weblogic container ?
    We were unable to set up multiple instances of Portal2004Q2 on the Weblogic container. Looks like this issues is addressed in 2005Q1.
    This is posing serious concerns to our architecture scalability. Would greatly appreciate if you could let us know the issues you faced for setting up Portal2005Q1 on Weblogic8.1SP4,if any.

    There should not be a significant negative performance impact. The biggest
    issue will probably the amount of memory the 10 instances will use, not any
    CPU impact. On larger SMP systems, it is not uncommon to run several
    instances of WLS in a cluster (perhaps one for every 2 - 4 CPU's) to
    improve performance.
    "Raj" <[email protected]> wrote in message
    news:3da75672$[email protected]..
    >
    Hello,
    Is there a significant degradation of performance when using multipleinstances
    of weblogic on 1 Box. Example what would be the difference between running10
    instances each hosting 1 application on 1 box versus 1 instance hostingall the
    10 applications. Division into multiple domains is required formaintaining independence
    between the administrators of the application.
    Further let me add if those applications are mostly IO intensive and alsothe
    load on those applications is not more than 1 hit per second would thisstrategy
    cause problems.
    Raj

  • Clustering w/ Multiple Instances per server

    For performance reasons, we want to setup multiple instances of weblogic on each server in our cluster configuration.How is this handled in a cluster configuration? Is each instance considered another server in the cluster? Does each require its on IP address, or is a seperate port sufficient for each? Also, is there a way to configure the cluster w/o using multicast - there's issues with supporing multicast on our backend network.Thanks, Rick
              

    Sure, if JVM uses native threads and the application itself is well-behaved
              concurrency-wise (very important!) it should be able to scale up on multiple CPUs.
              Madhu <[email protected]> wrote:
              > What about CPU utilization? What if you have mutliple cpus? Is the Java VM
              > optimized for mutliprocessor environment. I can VM per processor so that I
              > can keep them all busy? Is this possible? Can I have a VM locked on to one
              > processor?
              > Also, I found issues running code (could be buggy testing) running on WL 5.1
              > on multi-cpu machine, on single cpu it was all code and in mutli-cpu, mostly
              > index out of bound / some from java.util classes like ArrayList? Is this
              > common?
              > - Madhu
              > "Dimitri Rakitine" <[email protected]> wrote in message
              > news:[email protected]...
              >> Sure you can - each instance will need it's own IP address, but why do you
              > think that running WLS
              >> instance per CPU will improve performance? The reason for running multiple
              > JVMs on the same box was
              >> memory utilization, which is not an issue with Hotspot JVM.
              >>
              >> Richard Kemp <[email protected]> wrote: > For performance reasons, we
              > want to setup multiple instances of weblogic on
              >> each server in our cluster configuration.How is this handled in a cluster
              > configuration? Is each instance considered another
              >> server in the cluster? Does each require its on IP address, or is a
              > seperate port sufficient for each? Also, is there a way
              >> to configure the cluster w/o using multicast - there's issues with
              > supporing multicast on our backend network.Thanks, Rick
              >>
              >> --
              >> Dimitri
              Dimitri
              

  • 11g License enhancements - Multiple Instances through VM

    More RAM, CPU or storage support would be nice, but my main point would be legal multiple instances through virtual machines, such as OracleVM. Cheap entry level XE hosting with the opportunity to upgrade each instance to a commercial license including support - looks like a business model to me.
    C.

    +1

  • Multiple instances of Mail.app must be possible

    I've seen many questions regarding the possibility of running multiple instances of Mail.app as separate processes. There seems to be much good reason to be able to do so, i.e. separating work and private mail, and very little bad reason to do so (maybe some problems when doing upgrades or backups, but I'm not yet sure of this). It also seems that it should not be so hard to do.
    So far, using some web acquired wisdom, I've done the following:
    1. Duplicate mail.app:
    sudo ditto Mail.app WorkMail.app
    2. Rename the executable:
    mv /Applications/WorkMail.app/Contents/MacOS/Mail /Applications/WorkMail.app/Contents/MacOS/WorkMail
    3. Use Property List Editor to set the following values in/Applications/WorkMail.app/Contents/Info.plist (Apple-S to Save changes!):
    Root/CFBundleExecutable=WorkMail
    Root/CFBundleIdentifier=com.apple.workmail
    Root/CFBundleName=WorkMail
    Root/NSServices/0/NSPortName=WorkMail
    Root/NSServices/1/NSPortName=WorkMail
    Root/NSServices/2/NSPortName=WorkMail
    Root/UTExportedTypeDeclarations/0/UTTypeIdentifier=com.apple.workmail.emlx
    Root/UTExportedTypeDeclarations/1/UTTypeIdentifier=com.apple.workmail.emlx.part
    4. Create the following directories:
    mkdir ~/Library/WorkMail Downloads
    mkdir ~/Library/WorkMail
    4. Launch the 'new' application 'WorkMail'.
    5. Create mail accounts using the application's 'wizard'.
    Here is where the first problem is encountered. The new account directories and files are still created at ~/Library/Mail. Navigating to Mail->Preferences->Accounts->[account_name]->Advanced seems to offer the option to change the mail store account directory, but nothing can actually be changed here. So...
    6. Quit WorkMail.
    7. Move newly created account(s) directories (where [newaccountdirectory] is a directory named with the format: [mail_type]-[user]@[domain].[tld]@[pop].[domain].[tld]]) to the correct location:
    sudo mv ~/Library/Mail/[newaccountdirectory] ~/Library/WorkMail/
    8. Use Property List Editor to set the following values in ~/Library/Preferences/com.apple.workmail.plist (Apple-S to Save changes!):
    /Root/ActiveViewers/0/AttachedMailboxListExpandedItems/[0to_#_ofaccounts]/=~/Library/WorkMail/Mailboxes/...
    /Root/CurrentTransferMailboxPath=~/Library/WorkMail/Mailboxes/...
    /Root/MailAccounts/[0to_#_of_accounts]/AccountPath=~/Library/WorkMail/[new_accountdirectory]
    /Root/MailDownloadsPath=~/Library/WorkMail Downloads
    9. Relaunch WorkMail.
    Everything at this point seems to work okay, **BUT** when I launch Mail while WorkMail is launched, I find that I cannot navigate into any mail folders within Mail. I receive an error message indicating that a necessary directory is locked. It seems that the locking mechanism used by the application may be hard-coded to lock ~/Library/Mail, and both instances of the application continue to take this action when launched, making it impossible for both to work harmoniously at the same time. I will conduct more testing and experimentation, but I am not yet capable of editing the application itself. If anyone can take us this last step, I'm sure there are many who would also like to be able to take advantage of the potential functionality.
    Thanks for any input!
    Steven Stromer

    Hopefully, there is someone with a programming background who
    can take me and other who have posted similar questions through
    the final mile on this...
    Well, I do have a programming background, and I must say that it amazes me that someone might want to do what you did to “solve” a problem that IMO doesn’t exist.
    What exactly is it that you expect to accomplish by running multiple instances of Mail, and for which neither (1) organizing your mail using multiple mail accounts, custom mailboxes, rules, and/or smart mailboxes, nor (2) setting up separate user accounts, are acceptable solutions? I just don’t get it.
    I've seen many questions regarding the possibility of running multiple
    instances of Mail.app as separate processes.
    I haven’t. Could you please provide a link for such a question, preferably one asked by someone who knew how Mail and Mac OS X work, i.e. a link for a case where there really was such a need?
    There seems to be much good reason to be able to do so
    I know of no such reasons, neither good nor bad.
    i.e. separating work and private mail
    I don’t see how that’s a reason to want to run multiple instances of Mail. Could you please elaborate?
    Maybe if you tell us what exactly is the problem that you’re trying to solve, instead of focusing on a convoluted “solution” that doesn’t work, we could propose a solution that does...
    and very little bad reason to do so
    Well, if the fact that it’s so convoluted and doesn’t even work aren’t bad enough reasons, I don’t know what it is...
    It also seems that it should not be so hard to do.
    I wonder what makes you think so. It does certainly seem hard to me, so hard that I don’t even think it can be done without breaking something, if at all...

  • What is the best way to load multiple instances of a button into master index page?. I have looked a

    I have successfully created an animated button that opens to reveal a quotation with a nested clickable link to the source. What I would like to do is have several of these with different quotes inside them, scattered on the page. I have looked at the composition loader available via Edge Commons, and it seems that would require some sort of Edge animate Stage 'frame' to load the instances into? Is there any way to place them directly into the master page - as div elements...?
    The outer of the buttons is the same, on hover they open partialy on click fully, to reveal  their particular text - which I thought about loading it at runtime with json, or maybe handlebars...?
    I would also like to make the buttons only take the necessary space. ie. before they expand they are only buttons. ( I have set the stage to hidden but it still takes up space). To acheive this, I think perhaps I will have to target the inner components css, and set them as display:none until the button is hovered over, then set :hover and :active pseudo classes inside edge. Is this feasible?
    Thanks in advance for any ideas/suggestions...

    Hello, Thanks for your helpful input. Based on that, and the tutorial 'http://tv.adobe.com/watch/learn-edge-animate-cc/ingesting-external-data-dc/' - I have written code to drive my button's behaviour.  (copied below...)
    var textArray =new Array();
    var currentHead = 0;
    var currentText = 0;
    var currentFoot = 0;
    var s = sym.getSymbol("textContainer");
    sym.$("textContainer")$.("text").html("");
    var sh = sym.getSymbol("headContainer");
    sym.$("headContainer")$.("head").html("");
    var sf = sym.getSymbol("footContainer");
    sym.$("footContainer")$.("footer").html("");
    $.getJSON("assets/sources1.json", function(data){
              for (var i=0; i<data.length; i++){
                        textArray.push({"head":data[i].heading,
                                  "text":data[i].text,
                                  "footer":data[i].foot,
                                  "link":data[i].link});
              sym.$("headContainer")$.("head").html(textArray[currentHead]).heading;
              sym.$("textContainer")$.("text").html(textArray[currentText]).text;
              sym.$("footContainer")$.("foot").html(textArray[currentFoot]).foot;
              sym.$("footContainer")$.("link").html(textArray[currentLink]).link;
    But there is an error I don't understand at line 7...
    Also - as you can see, at present I have several symbols in parallel. Would I be better off nesting the text containers inside the outer button container? and would I be better off creating styled mini- pages of text data, and then loading them - instead of loading them as symbols? I have had to create seperate symbols because I cannot adequately stle the text - so some is bold, some is italic etc. within one text field. Or can I? I guess I could nest several text fields inside one symbol...?
    I remain unsure how to load the finished animation button instances. In your example you were still loading into an animation But from yor example, I guess I would need to place all my examples inside an outer edge composition... but then I think positioning them accurately with css, making adjustments etc. will be fairly tricky. Is there any way to place multiple instances directly into divs in index.html? Could I simply repeat the class...? I may be answering my own questions here.

  • Since upgrading my mid-2010 MacBook Pro from the original Snow Leopard to Yosemite 10.10.2 there have been multiple instances of restart (crash) also slow operation. Any suggestions?

    Since upgrading my mid-2010 MacBook Pro from the original Snow Leopard to Yosemite 10.10.2 there have been multiple instances of restart (crash) also slow operation & pop up message stating web content has failed. Any suggestions?

    Many thanks for your interest, I've downloaded & run the app as suggested, report copies & pasted below.
    Problem description:
    Following upgrade from Snow Leopard to Yosemite 10.10.2 machine is slower & suffers from shut down / reboot and closing web pages due to unexpected error
    EtreCheck version: 2.1.8 (121)
    Report generated 6 February 2015 08:40:29 GMT
    Download EtreCheck from http://etresoft.com/etrecheck
    Click the [Click for support] links for help with non-Apple products.
    Click the [Click for details] links for more information about that line.
    Hardware Information: ℹ️
        MacBook Pro (15-inch, Mid 2010) (Technical Specifications)
        MacBook Pro - model: MacBookPro6,2
        1 2.4 GHz Intel Core i5 CPU: 2-core
        4 GB RAM Upgradeable
            BANK 0/DIMM0
                2 GB DDR3 1067 MHz ok
            BANK 1/DIMM0
                2 GB DDR3 1067 MHz ok
        Bluetooth: Old - Handoff/Airdrop2 not supported
        Wireless:  en1: 802.11 a/b/g/n
        Battery Health: Normal - Cycle count 75
    Video Information: ℹ️
        Intel HD Graphics - VRAM: 288 MB
            Color LCD 1440 x 900
        NVIDIA GeForce GT 330M - VRAM: 256 MB
    System Software: ℹ️
        OS X 10.10.2 (14C109) - Time since boot: 0:13:14
    Disk Information: ℹ️
        Hitachi HTS545032B9SA02 disk0 : (320.07 GB)
            EFI (disk0s1) <not mounted> : 210 MB
            Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
            Macintosh HD (disk1) / : 318.84 GB (134.68 GB free)
                Core Storage: disk0s2 319.21 GB Online
        MATSHITADVD-R   UJ-898 
    USB Information: ℹ️
        BUFFALO HD-PVU2 500.11 GB
            EFI (disk2s1) <not mounted> : 210 MB
            Time Machine Backups (disk2s2) /Volumes/Time Machine Backups : 499.76 GB (257.33 GB free)
        Apple Internal Memory Card Reader
        Apple Inc. BRCM2070 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple Inc. Apple Internal Keyboard / Trackpad
        Apple Computer, Inc. IR Receiver
        Apple Inc. Built-in iSight
    Gatekeeper: ℹ️
        Mac App Store and identified developers
    Kernel Extensions: ℹ️
            /System/Library/Extensions
        [not loaded]    jp.co.buffalo.driver.turbousbhdd (1.0.0) [Click for support]
    Launch Agents: ℹ️
        [loaded]    com.hp.help.tocgenerator.plist [Click for support]
    Launch Daemons: ℹ️
        [loaded]    com.adobe.fpsaud.plist [Click for support]
    User Launch Agents: ℹ️
        [loaded]    com.google.keystone.agent.plist [Click for support]
    User Login Items: ℹ️
        Skype    UNKNOWN  (missing value)
        Safari    Application  (/Applications/Safari.app)
        Dropbox    Application  (/Applications/Dropbox.app)
        Android File Transfer Agent    Application  (/Users/[redacted]/Library/Application Support/Google/Android File Transfer/Android File Transfer Agent.app)
        ConnectService    Application  (/Library/Application Support/ArcSoft/Connect Service/ConnectService.app)
    Internet Plug-ins: ℹ️
        Flip4Mac WMV Plugin: Version: 2.4.4.2 [Click for support]
        FlashPlayer-10.6: Version: 16.0.0.305 - SDK 10.6 [Click for support]
        QuickTime Plugin: Version: 7.7.3
        Flash Player: Version: 16.0.0.305 - SDK 10.6 [Click for support]
        Default Browser: Version: 600 - SDK 10.10
        Google Earth Web Plug-in: Version: 7.1 [Click for support]
        Silverlight: Version: 4.0.60129.0 [Click for support]
        iPhotoPhotocast: Version: 7.0
    User internet Plug-ins: ℹ️
        CitrixOnlineWebDeploymentPlugin: Version: 1.0.105 [Click for support]
    3rd Party Preference Panes: ℹ️
        Flash Player  [Click for support]
        Flip4Mac WMV  [Click for support]
    Time Machine: ℹ️
        Skip System Files: NO
        Auto backup: YES
        Volumes being backed up:
            Macintosh HD: Disk size: 318.84 GB Disk used: 184.16 GB
        Destinations:
            Time Machine Backups [Local]
            Total size: 499.76 GB
            Total number of backups: 184
            Oldest backup: 2010-12-10 15:37:39 +0000
            Last backup: 2015-02-06 02:49:24 +0000
            Size of backup disk: Too small
                Backup size 499.76 GB < (Disk used 184.16 GB X 3)
    Top Processes by CPU: ℹ️
             5%    WindowServer
             1%    ConnectService
             1%    Skype
             0%    systemstatsd
             0%    launchd
    Top Processes by Memory: ℹ️
        193 MB    Skype
        168 MB    mds_stores
        132 MB    com.apple.WebKit.WebContent
        107 MB    Mail
        99 MB    ocspd
    Virtual Memory Information: ℹ️
        889 MB    Free RAM
        1.99 GB    Active RAM
        455 MB    Inactive RAM
        825 MB    Wired RAM
        1.11 GB    Page-ins
        0 B    Page-outs
    Diagnostics Information: ℹ️
        Feb 6, 2015, 08:27:32 AM    /Library/Logs/DiagnosticReports/com.apple.AmbientDisplayAgent_2015-02-06-082732 _[redacted].crash
        Feb 6, 2015, 08:25:19 AM    Self test - passed
        Feb 5, 2015, 04:37:08 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-02-05-163708_[redacted].crash
        Feb 5, 2015, 10:01:02 AM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-02-05-100102_[redacted].crash
        Feb 5, 2015, 12:03:59 AM    /Library/Logs/DiagnosticReports/HP Scan_2015-02-05-000359_[redacted].cpu_resource.diag [Click for details]
        Feb 4, 2015, 11:58:58 PM    /Library/Logs/DiagnosticReports/HP Scan_2015-02-04-235858_[redacted].cpu_resource.diag [Click for details]
        Feb 4, 2015, 11:54:35 PM    /Library/Logs/DiagnosticReports/HP Scan_2015-02-04-235435_[redacted].cpu_resource.diag [Click for details]
        Feb 4, 2015, 11:49:03 PM    /Library/Logs/DiagnosticReports/HP Scan_2015-02-04-234903_[redacted].cpu_resource.diag [Click for details]
        Feb 4, 2015, 09:40:16 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-02-04-214016_[redacted].crash
        Feb 4, 2015, 09:38:12 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-02-04-213812_[redacted].crash
        Feb 4, 2015, 09:27:56 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-02-04-212756_[redacted].crash
        Feb 4, 2015, 09:25:25 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-02-04-212525_[redacted].crash
        Feb 4, 2015, 09:20:16 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-02-04-212016_[redacted].crash
        Feb 4, 2015, 09:18:10 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-02-04-211810_[redacted].crash
        Feb 4, 2015, 09:12:54 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-02-04-211254_[redacted].crash
        Feb 4, 2015, 08:40:48 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-02-04-204048_[redacted].crash
        Feb 4, 2015, 08:22:04 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-02-04-202204_[redacted].crash
        Feb 4, 2015, 12:11:35 AM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-02-04-001135_[redacted].crash
        Feb 3, 2015, 09:44:33 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-02-03-214433_[redacted].crash
        Feb 3, 2015, 05:40:21 PM    /Library/Logs/DiagnosticReports/HP Scan_2015-02-03-174021_[redacted].cpu_resource.diag [Click for details]
        Feb 3, 2015, 09:05:45 AM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-02-03-090545_[redacted].crash
        Jan 28, 2015, 06:10:42 PM    /Library/Logs/DiagnosticReports/Kernel_2015-01-28-181042_[redacted].panic [Click for details]
        Jan 21, 2015, 10:51:25 PM    /Library/Logs/DiagnosticReports/Kernel_2015-01-21-225125_[redacted].panic [Click for details]
        Jan 20, 2015, 11:12:47 AM    /Library/Logs/DiagnosticReports/Kernel_2015-01-20-111247_[redacted].panic [Click for details]
        Jan 18, 2015, 09:57:31 AM    /Library/Logs/DiagnosticReports/Kernel_2015-01-18-095731_[redacted].panic [Click for details]
    The only observations are that the backup drive is deemed too small and the quite long list of diagnostic reports dated between  Jan 18, 2015 (which I believe is the day I upgraded to Yosemite) & today the latest Yosemite update was installed on Jan 28, 2015
    Any further assistance will be appreciated

  • Multiple instances of app in a single JVM

    Hi all,
    I saw an article either on the web or in a magazine not too long ago about how to "detect" if the app is already running, and if so, it hands off the new instance to the already running JVM, which then creates a thread to run the Java app in. As it turns out, my app will be used in an ASP environment, through Citrix. We may have as many as 50 to 100 users running the same app, each with their own unique user ID, but all using the same one server to run it on. Each instance eats up 25MB of memory right now. So the question is if anybody knows of a URL or an app like this that can handle the process of running the same (or even different Java) apps in one JVM as separate threads, instead of requring several instances of the JVM to run? I know this article presented a fully working example, and I believe I know enough to do it but I wanted ot use the article as a reference to make sure it is done right. I know that each app basically would use the same one "launcher" program that would on first launch "listen" to a port, as well as send a message through the port to see if an existing launcher was running. If it does, it hands off the Java app to be run to the existing luancher application and shuts down the 2nd launching app. By using this method, the JVM eats up its normal memory, but each Java app only consumes its necessary memory as well and doesn't use up more JVM instance memory.
    Thanks.

    Anyone have any ideas on this one?

  • Multiple instances of firefox running cannot kill in task manager "Access denied"

    There's no issue with starting a new instance after closing one, the "firefox is already running" error is not occurring (ok maybe once or twice a month, but it's not related to this problem, as my problem happens all the time.)
    Apparently when closing a ff window it never fully stops. My computer slows down because of it and these multiple instances of firefox show up in Task Manager. When I try to kill the extra processes it just goes "BANG" and the "access denied" error dialog box appears. They are all running under my user account, and in CPU some are just 10 or 25 and some are in the hundreds and some are over a million. what the heck is going on?
    I'm running Windows 7 64 bit and ff 23.0 but this has been happening since about ff 15 (?)

    When closing Firefox completely, it is important to close it using the <i>Exit</i> button, located inside of the Firefox/File menu.
    Another cause to this problem could be a Firefox preloader. Do you have any programs that will load Firefox automatically? They are supposed to improve start time.
    You can also '''try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * Open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    I hope that one of my solutions helps to fix your problem. Please report back with updates soon.
    <b>NOTE: </b>You are using an outdated version of Firefox. This can cause security and functionality issue. Please update to the most recent version as soon as possible.

  • How can I open multiple instances of the same version of FF?

    I understand that if I have multiple profiles, I can run different versions of FF side-by-side (like 3.6 and 4).
    However, what I'm interested in is how I can launch multiple instances of the same version of FF (4, for instance) using the same profile. In other words, I want to be able to double-click the desktop icon for FF, and open a new instance, and keep doing that as many times as I want. I don't want to have a different icon and profile for each instance (too much overhead to keep a dozen+ profiles in sync).
    I can always launch one FF window instance, and then keep clicking ctrl+N to launch new instances from inside it, which they all share the same profile (as I want). So, basically, I want to be able to do that from my desktop icon, rather than by having to do it with the keyboard ctrl+N sequence.

    But I don't understand why whatever Firefox does when you click ctrl+N can't also be done (with some sort of command-line switch) from a desktop icon?
    In other words, I clearly can create many FF instances (even if they are the same FF.exe process) by doing ctrl+n a bunch of times. Why then can't this behavior be done from a desktop icon with some parameters?
    As far as I know, FF is the only browser that doesn't directly allow multiple browser instances from desktop icons. IE, Chrome, Safari, Opera, etc... all let me launch a new instance (even if they are all single process and the instances are shared within the process).

  • How to create multiple instances within same AS

    Ramesh,
    I have a unique problem. I might have to create B2B instances for 4 owners. As in BPEL, I can have separate domains for the 4 clients in the same instance; what is the equivalent in B2B?
    I have a limited number of CPUs and need to install the instances on the same box and hence trying to be creative yet secure here.
    Could you please provide some pointers.
    Thanks
    Shamik

    Hello Shamik,
    Please elaborate your use case. Is this just caters to user management or to really have different domain like bpel for four different users. Please see, b2b do not have the notion of BPEL domain, you might have to install multiple instances of B2B pointing to the same MR.
    Rgds,Ramesh

  • How to use multiple instances of the same dll ?

    Hi,
    I'd like to use multiple instances of a jni dll . I have created
    different threads, in each thread, I have called System.loadLibrary(..),
    and I would like each thread to access a different instance of this
    library.
    Unfortunately, the loadLibrary function is effective only once so I
    can not find the way to do this.
    Can anyone help me on this ?
    Thanks.
    Francois.

    Hi, :)
    and I would like each thread to access a different
    instance of this library.In Win32, this is outright impossible. A DLL will only exist once in a process space.
    In Unix, or at least in Solaris, I think this is also not possible, as libraries are loaded by the dynamic linker, and it keeps tabs of which modules have already been loaded into the process space.
    I'm assuming your problem is that your native library has non-reentrant code.
    If so, there are two approaches you can take to this:
    1) If you have access to the source code for the native library, change it so that it is reentrant.
    2) If you do not, change your Java code so that access to the native code is made from whithin synchronize blocks.
    If your problem is of a different nature, I'll second the words of the previous poster and ask you what it is...
    Cheers,
    J.

  • How to reference multiple instances of the same Java object from PL/SQL?

    Dear all,
    I'm experimenting with calling Java from PL/SQL.
    My simple attempts work, which is calling public static [java] methods through PL/SQL wrappers from SQL (and PL/SQL). (See my example code below).
    However it is the limitation of the public static methods that puzzels me.
    I would like to do the following:
    - from PL/SQL (in essence it needs to become a forms app) create one or more objects in the java realm
    - from PL/SQL alter properties of a java object
    - from PL/SQL call methods on a java object
    However I fail to see how I can create multiple instances of an object and reference one particular object in the java realm through public static methods.
    My current solution is the singleton pattern: of said java object I have only 1 copy, so I do not need to know a reference to it.
    I can just assume that there will only ever be 1 of said object.
    But I should be able to make more then 1 instance of an object.
    To make it more specific:
    - suppose I have the object car in the java realm
    - from PL/SQL I want to create a car in the java realm
    - from PL/SQL I need to give it license plates
    - I need to start the engine of a scpecific car
    However if I want more then 1 car then I need to be able to refrence them. How is this done?
    Somehow I need to be able to execute the following in PL/SQL:
    DECLARE
    vMyCar_Porsche CAR;
    vMyCar_Fiat CAR;
    BEGIN
    vMyCar_Porsche = new CAR();
    vMyCar_Fiat = new CAR();
    vMyCar_Porsche.setLicensePlates('FAST');
    vMyCar_Porsche.startEngine();
    vMyCar_Fiat.killEngine();
    END;
    Thanks in advance.
    Best Regards,
    Ruben
    My current example code is the following:
    JAVA:
    ===
    CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED CODAROUL."RMG/BO/RMG_OBJECT" as package RMG.BO;
    public class RMG_OBJECT {
    private static RMG_OBJECT instance = new RMGOBJECT();
    private String rmgObjectNaam;
    private RMG_OBJECT(){
    this.rmgObjectNaam = "NonDetermined";
    public static String GET_RMGOBJECT_NAAM () {
    String toestand = null;
    if (_instance == null) {toestand = "DOES NOT EXIST";} else { toestand = "EXISTS";};
    System.out.println("instance : " + toestand);
    System.out.println("object name is : " + _instance.rmgObjectNaam);
    return _instance.rmgObjectNaam;
    public static Integer SET_RMGOBJECT_NAAM (String IN)
    try
    _instance.rmgObjectNaam = IN;
    return 1;
    catch (Exception e)//catch
    System.out.println("Other Exception: " + e.toString());
    e.printStackTrace();
    return 5;
    } //catch
    PL/SQL Wrapper:
    ==========
    CREATE OR REPLACE FUNCTION CODAROUL.SET_RMGOBJECT_NAAM(NAAM IN VARCHAR2) return NUMBER AS
    LANGUAGE JAVA NAME 'RMG.BO.RMG_OBJECT.SET_RMGOBJECT_NAAM (java.lang.String) return java.lang.Integer';
    Calling from SQL:
    ==========
    CALL dbms_java.set_output(2000);
    select CODAROUL.GET_RMGOBJECT_NAAM() from dual;
    Edited by: RubenS_BE on Apr 6, 2012 5:35 AM
    Edited by: 925945 on Apr 6, 2012 5:41 AM

    You can do this by manually creating a new iterator binding in your binding tab.
    So instead of dragging the VO directly to the page, go to the binding tab, add a new executable iterator binding, and point to that one from your ELs in the page itself.

  • Can I create multiple instances of  realplayer plug-in in one jsp page?

    I want to play meny video files in one jsp web page, these video files are to be played with the embeded plug-in of realplayer, each plug-in was linked(use its SRC property) a different video file. But, to my surprise, when I press the play button, every player played the same video file,not its specified file.
    I have no idea why it did so and what can I do?
    Whether can I create multiple instances of realplayer plug-in in one jsp page, that is to say, each instance is independent of others?
    thanks in advance!

    Generally speaking, Internet Explorer tries not to launch multiple versions of a plug-in. So what's happening is that you load the first video clip, and then before it has a chance to play, you load the second video clip into the same window. (It's like changing songs in WMA.)
    In some cases - this may not work for Real Player, but it's worth trying - if you spawn a new window through a hypertext link and then launch the plug-in in that window, IE will treat it separately. Otherwise, you could not, for example, run two Macromedia Flash applications from different web sites at the same time.
    Keep in mind that only one program can access the soundcard at a time, so Real Player may purposely "pause" or "cancel" other video streams until the active one finishes. If you were using the desktop version, selecting another video by any means aborts the currently running video (i.e., RP won't let you create a separate instance of it).
    The easiest solution is to create a wrapper JSP file that takes the name of the video clip, and plays it. Call that JSP and specify that it should be opened in a new window via the TARGET keyword in the anchor tag. Then hopefully RP itself won't block a second window from running.

Maybe you are looking for

  • A little problem with session

    How can i put a session variable in a string variable?? I tried this but Note: sun.tools.javac.Main has been deprecated. /respostaGaleria.jsp:92: Incompatible type for =. Explicit cast needed to convert java.lang.Object to java.lang.String.          

  • Dynamic Sql Select Query : getting no response

    Hi I am working on a synchronous interface that has jdbc at the receiver side.. I need to be doing a select dynamically based on a filed from the request like select locationId from dbTablename  where empId = 'xxx' AND delFlag =0 the xxx will be popu

  • No Sound in iMovie Import

    Hello everyone: I am trying to import a movie from my Sony DSC W100 camera. The movie downloads to iMovie great, but I can't get any sound. I've checked the various volume controls on the camera, computer, and iMovie and everything seems to be where

  • How do you adjust the number of rings before the incoming call goes into voicemail?

    How do you adjust the number of rings on the iphone before the incoming call goes into voicemail?

  • Auto start weblogic

    Hi all, I want to autostart the weblogic server everytime after the server is rebooted. Since the weblogic server is installed and run as user "peter". How can I do it in the solaris?? Rgds, unplug