Execution of Java Native Process slow in Mac OS X

Hi,
I'm having some performance issues when executing an java native process on Mac OS X. I am developping an application in AIR that searches for people in the ldap of our organisation. It has to be usable both on Mac as on Windows. When I execute my app on windows, the search process takes about 2-3 seconds. However, when I try to execute it on mac, the search process takes about 6-8 seconds. This is a bit to long to make it usable.
Has anybody encountered this problem as well and does anyone know what the problem can be?
Thanks in advance
Ronald Kamp
Junior Flex/Java/LiveCycle Consultant at iDA MediaFoundry

Hi Ronald,
Have you tried benchmarking your java process without the inclusion of AIR?  If so, did you find a difference which points to AIR being a culprit for the performance hit?
I'd be very interested in trying this out.  If you could provide me with a sample project that illustrates the slow down on Mac, I'll take a look right away.  Please feel free to contact me via private message on the forum or at [email protected] if you'd like to take this offline.
Thanks,
Chris

Similar Messages

  • Native process execution problem in mac os

    hi,
         In my flex application i have to get mac serial  number as a unique id for each system . On searching i got one terminal command to get serial number. For that i have  run terminal command through flex native process. I have set supportedprofile as <supportedProfiles>extendedDesktop desktop</supportedProfiles> in app xml. But when i install and run application on mac terminal is getting opened but command is not executing. I couldn't trace out the problem.  I could execute cmd in windows and that worked . Please help me to findout a solution................... The test code is adding below
    private var process:NativeProcess
    =
    new NativeProcess();
    protected function windowedapplication1_creationCompleteHandler(event:FlexEvent):void
                    // TODO Auto-generated method stub
                    if(NativeProcess.isSupported) {
                        Alert.show("Yes NativeProcess");
                        process.addEventListener(ProgressEvent.STANDARD_OUTPUT_DATA, onOutput);
                        process.addEventListener(ProgressEvent.STANDARD_ERROR_DATA, onIOError);
                        process.addEventListener(IOErrorEvent.STANDARD_OUTPUT_IO_ERROR, onIOError);
                        process.addEventListener(IOErrorEvent.STANDARD_ERROR_IO_ERROR, onIOError);
                        process.addEventListener(NativeProcessExitEvent.EXIT,onIOError);
                        var info:NativeProcessStartupInfo     =     new NativeProcessStartupInfo();
                        info.executable                               =     new File("/Applications/Utilities/Terminal.app/Contents/MacOS/Terminal");
                         /*  var startupArgs:Vector.<String>    =     new Vector.<String>();
                             startupArgs[0]                              =    'system_profiler |grep "r (system)" '; 
                             info.arguments                              =    startupArgs;*/
                        //Alert.show(String(info.arguments.length));
                         process.start(info); 
                        process.standardInput.writeUTFBytes('system_profiler |grep "r (system)" '+ "\n");
                    }else
                        Alert.show("No");
                protected function onIOError(event:IOErrorEvent):void
                    // TODO Auto-generated method stub
                    Alert.show("Error");
                protected function onOutput(event:ProgressEvent):void
                    var processID:String            =    process.standardOutput.readMultiByte(process.standardOutput.bytesAvailable,"");       
                    Alert.show("Path : " + processID );
    I have tried to set arguments but didn't execute......
    Message was edited by: aswathykrishnan

    Hello Aswathy, these days I'm also coding an application which uses AIR NativeProcess and I required to open the MacOS terminal with some parameter/commands. I also eventually turn to the AppleScript, but I considerably new to the AppleScript, yet trying to findout a way to passing parameters (the command argument) to the AppleScript; the appleScript I managed to open but not passing the argument. Can you please help? here's my some probable codes for the application:
    My appleScript is:
    #!/bin/bash
    on run argv
              tell application "Terminal"
                        set currentTab to (do script) & item 1 of argv
              end tell
    end run
    I've packaged the appleScript as an Application (Contract.app) and here's my Flex code:
    var npInfo : NativeProcessStartupInfo = new NativeProcessStartupInfo();
    npInfo.executable = new File( "/Applications/Contract.app/Contents/MacOS/applet" );
                                  var arg:Vector.<String> = new Vector.<String>;
                                      arg[0]="ssh [email protected]";
                                  npInfo.arguments = arg;
                                  process = new NativeProcess();
      process.start( npInfo );
    Can you please help?
    Thank you.

  • Native Process Concerns on Linux and MAC

    I  have created an AIR application that has a feature to take screenshot  of the screen. I have used "senthil.jar" to support screenshot capture.
    http://sensaran.wordpress.com/2010/06/04/screen-shot-utility-using-air-2-0/
    http://code.google.com/p/dtflex/downloads/detail?name=ScreenShot.rar&can=2&q=#makechanges
    Native Process is created and used. I have also created native installers like -
    exe for windows
    dmg for MAC
    rpm for linux
    on  windows everything works fine.But on linux and MAC one NativeProcess  event is dispatched i.e. Event.ACTIVITY. No other event is dispatched.

    I haven't tested JWS before JRE 1.4 so I can't recommend you anything if you require JRE 1.3 or before, but if you can install JRE 1.4, specially JRE 1.4.2 or after, JWS works very good on Linux and Windows. In both platforms I use deploy applications using JWS and they all work very good. I have no experience on Mac OS X.
    Both platforms obviously require Java preinstalled. Also there is some ways to install Java automatically, this is something that must be done by an administrator as every other software that requieres installation and configuration on every PC. After that step, everything is very simple.
    On Linux if you click on a .jnlp file for the first time, at least mozilla ask if you want to save the file or open it, you can select the javaws executable inside your java installation as the program to open this file, mark that that's the action you always want to do with that kind of files, and that's all. Also you can manually register .jnlp files and application/x-java-jnlp-file mime tipe as handled by javaws as the last part of the java installation and this first step will not be necesary.
    On Windows the installer automatically register itself as insterested in handling jnlp files, so the previous step for linux is not required.
    Hope this helps.
    rivas.

  • System with yosemite running very slow with mac book pro

    Problem description:
    yosemite is running very slow
    EtreCheck version: 2.0.11 (98)
    Report generated November 3, 2014 at 8:35:53 PM CST
    Hardware Information: ℹ️
        MacBook Pro (13-inch, Late 2011) (Verified)
        MacBook Pro - model: MacBookPro8,1
        1 2.8 GHz Intel Core i7 CPU: 2-core
        8 GB RAM Upgradeable
            BANK 0/DIMM0
                4 GB DDR3 1333 MHz ok
            BANK 1/DIMM0
                4 GB DDR3 1333 MHz ok
        Bluetooth: Old - Handoff/Airdrop2 not supported
        Wireless:  en1: 802.11 a/b/g/n
    Video Information: ℹ️
        Intel HD Graphics 3000 - VRAM: 512 MB
            Color LCD 1280 x 800
    System Software: ℹ️
        OS X 10.10 (14A389) - Uptime: 0:37:14
    Disk Information: ℹ️
        WDC WD10JPVX-22JC3T0 disk0 : (1 TB)
        S.M.A.R.T. Status: Verified
            EFI (disk0s1) <not mounted> : 210 MB
            Macintosh (disk0s2) /  [Startup]: 749.35 GB (681.51 GB free)
            Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
            BOOTCAMP? (disk0s4) <not mounted> : 250.00 GB
        MATSHITADVD-R   UJ-8A8 
    USB Information: ℹ️
        Apple Computer, Inc. IR Receiver
        Apple Inc. FaceTime HD Camera (Built-in)
        Apple Inc. BRCM2070 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple Inc. Apple Internal Keyboard / Trackpad
    Thunderbolt Information: ℹ️
        Apple Inc. thunderbolt_bus
    Configuration files: ℹ️
        /etc/hosts - Count: 16
    Gatekeeper: ℹ️
        Mac App Store and identified developers
    Kernel Extensions: ℹ️
            /Library/Application Support/Kaspersky Lab/KAV/Bases/Cache
        [not loaded]    com.kaspersky.kext.kimul.44 (44) Support
        [not loaded]    com.kaspersky.kext.mark.1.0.5 (1.0.5) Support
            /Library/Application Support/MacKeeper/AntiVirus.app
        [not loaded]    com.zeobit.kext.AVKauth (1.0) Support
            /Library/Application Support/Roxio
        [not loaded]    com.roxio.TDIXController (2.0) Support
            /Library/Extensions
        [loaded]    com.kaspersky.kext.klif (3.0.4a41) Support
        [not loaded]    com.kaspersky.nke (1.6.4a15) Support
        [not loaded]    net.sourceforge.ext2fs.fs.ext2 (1.4d4) Support
        [not loaded]    org.virtualbox.kext.VBoxDrv (4.2.12) Support
        [not loaded]    org.virtualbox.kext.VBoxNetAdp (4.2.12) Support
        [not loaded]    org.virtualbox.kext.VBoxNetFlt (4.2.12) Support
        [not loaded]    org.virtualbox.kext.VBoxUSB (4.2.12) Support
            /System/Library/Extensions
        [not loaded]    com.Belcarra.iokit.USBLAN_netpart (3.1.1 - SDK 10.6) Support
        [not loaded]    com.Belcarra.iokit.USBLAN_usbpart (3.1.1 - SDK 10.6) Support
        [not loaded]    com.Cycling74.driver.Soundflower (1.6.6 - SDK 10.6) Support
        [not loaded]    com.RemoteControl.USBLAN.usbpart (3.1.1 - SDK 10.7) Support
        [not loaded]    com.jft.driver.PdaNetDrv (1.0.64) Support
        [not loaded]    com.livescribe.kext.LivescribeSmartpen (1) Support
        [not loaded]    com.roxio.BluRaySupport (1.1.6) Support
    Startup Items: ℹ️
        rEFItBlesser: Path: /Library/StartupItems/rEFItBlesser
        VirtualBox: Path: /Library/StartupItems/VirtualBox
        Startup items are obsolete and will not work in future versions of OS X
    Problem System Launch Agents: ℹ️
        [loaded]    com.paragon.NTFS.trial.plist Support
        [loaded]    com.paragon.NTFS.upd.plist Support
    Problem System Launch Daemons: ℹ️
        [failed]    com.apple.ucupdate.plist
        [failed]    com.apple.watchdogd.plist
    Launch Agents: ℹ️
        [not loaded]    com.adobe.AAM.Updater-1.0.plist Support
        [not loaded]    com.adobe.CS5ServiceManager.plist Support
        [not loaded]    com.google.keystone.agent.plist Support
        [not loaded]    com.kaspersky.kav.gui.plist Support
        [not loaded]    com.oracle.java.Java-Updater.plist Support
    Launch Daemons: ℹ️
        [not loaded]    com.adobe.fpsaud.plist Support
        [invalid?]    com.adobe.SwitchBoard.plist Support
        [not loaded]    com.google.keystone.daemon.plist Support
        [not loaded]    com.kaspersky.kav.plist Support
        [not loaded]    com.livescribe.PenCommService.plist Support
        [not loaded]    com.microsoft.office.licensing.helper.plist Support
        [not loaded]    com.oracle.java.Helper-Tool.plist Support
        [not loaded]    com.oracle.java.JavaUpdateHelper.plist Support
        [not loaded]    com.zeobit.MacKeeper.AntiVirus Support
    User Launch Agents: ℹ️
        [not loaded]    com.adobe.AAM.Updater-1.0.plist Support
        [invalid?]    com.valvesoftware.steamclean.plist Support
        [invalid?]    com.zeobit.MacKeeper.Helper Support
    User Login Items: ℹ️
        iTunesHelper    ApplicationHidden (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
        WDQuickView    UNKNOWN (missing value)
    Internet Plug-ins: ℹ️
        MeetingJoinPlugin: Version: (null) - SDK 10.6 Support
        OVSHelper: Version: 1.1 Support
        Default Browser: Version: 600 - SDK 10.10
        Flip4Mac WMV Plugin: Version: 2.3.8.1 Support
        Google Earth Web Plug-in: Version: 6.0 Support
        VLC Plugin: Version: 1.0.5 Support
        AdobePDFViewerNPAPI: Version: 10.1.9 Support
        FlashPlayer-10.6: Version: 15.0.0.189 - SDK 10.6 Support
        Silverlight: Version: 5.1.10411.0 - SDK 10.6 Support
        Flash Player: Version: 15.0.0.189 - SDK 10.6 Support
        iPhotoPhotocast: Version: 7.0 - SDK 10.8
        QuickTime Plugin: Version: 7.7.3
        SharePointBrowserPlugin: Version: 14.4.4 - SDK 10.6 Support
        AdobePDFViewer: Version: 10.1.9 Support
        GarminGpsControl: Version: 2.9.3.0 Release Support
        JavaAppletPlugin: Version: Java 7 Update 71 Check version
    Safari Extensions: ℹ️
        vkbd
        URLAdvisor
        Virtual Keyboard
        URL Advisor
    Audio Plug-ins: ℹ️
        DVCPROHDAudio: Version: 1.3.2
    3rd Party Preference Panes: ℹ️
        DivX  Support
        ExtFSManager  Support
        Flash Player  Support
        Flip4Mac WMV  Support
        Growl  Support
        Java  Support
        Paragon NTFS for Mac ® OS X  Support
    Time Machine: ℹ️
        Skip System Files: NO
        Mobile backups: OFF
        Auto backup: NO - Auto backup turned off
        Volumes being backed up:
            Macintosh: Disk size: 749.35 GB Disk used: 67.83 GB
        Destinations:
            TimeMachine [Network]
            Total size: 991.33 GB
            Total number of backups: 0
            Oldest backup: -
            Last backup: -
            Size of backup disk: Adequate
                Backup size 991.33 GB > (Disk used 67.83 GB X 3)
    Top Processes by CPU: ℹ️
            35%    watchdogd
             4%    WindowServer
             1%    AppleSpell
             0%    launchd
             0%    notifyd
    Top Processes by Memory: ℹ️
        258 MB    firefox
        112 MB    Finder
        94 MB    com.apple.internetaccounts
        77 MB    NotificationCenter
        77 MB    com.apple.dock.extra
    Virtual Memory Information: ℹ️
        4.64 GB    Free RAM
        2.58 GB    Active RAM
        597 MB    Inactive RAM
        772 MB    Wired RAM
        831 MB    Page-ins
        0 B    Page-outs
    I am new to Mac and I dont know what to do, please help.

    Completely uninstall the Kaspersky software AND MacKeeper. Both aren't necessary and can cause all kinds of issues.
    Also check if Paragon and Virtualbox are up to date.

  • Creating native processes

    Hi,
    Runing SuSE Linux 8.0, java 1.4.0
    I'm trying to create a native shell (I/O dumped into a JTextArea) woith java, the problem is that once I have invoked bash, it somehow manages to work out that its not running in a real console and behaves as if my input was a script. I managed to get bash working properly with command line args, but now when I want to start other interpreters on top of it they too seem to detect they are not in a proper tty.
    Is there a way to make native processes behave as if they were run from, say, an xterm?
    my code follows:
    file tests/ConsoleOnSteroids.java
    /* File:    ConsoleOnSteroids.java
    * created: 10/07/03
    * author:  dsm
    package tests;
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.PrintStream;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTextArea;
    *  Defines a console that handles a native process
    * @author    dsm
    public class ConsoleOnSteroids extends JFrame {
        private ThreadedStreamReader out;
        private ThreadedStreamReader err;
        private PrintStream inp;
        private String processName;
        private JTextArea jta;
        private IOControl ioc;
        private JScrollPane jsp;
         *  Constructor for the ConsoleOnSteroids object
         * @param  name         The name of the frame
         * @param  processName  The name of the process to execute (like /bin/bash in UN*X systems)
        public ConsoleOnSteroids(String name, String processName) {
            super(name);
            this.processName = processName;
            this.jsp = new JScrollPane();
            this.jta = new JTextArea();
            try {
                this.ioc = new IOControl(Runtime.getRuntime().exec(this.processName));
                this.out = new ThreadedStreamReader(this.ioc.getStdout(), this.jta,
                    this.processName + ":stdout");
                this.err = new ThreadedStreamReader(this.ioc.getStderr(), this.jta,
                    this.processName + ":stderr");
                this.inp = this.ioc.getStdin();
            } catch(IOException ioe) {
                System.err.println("The process " + this.processName
                     + "could not be started due to an IOException:");
                ioe.printStackTrace();
                System.exit(1);
            this.jta.setEditable(false);
            this.jsp.setViewportView(jta);
            this.addListeners();
            this.getContentPane().add(jsp);
            //this.pack();
            this.setSize(600, 500);
            this.setLocation(100, 100);
            this.setVisible(true);
            this.out.start();
            this.err.start();
            //this.inp.println("ps -A");
            //this.inp.flush();
         *  The main program for the ConsoleOnSteroids class
         * @param  args  The command line arguments
        public static void main(String[] args) {
            ConsoleOnSteroids cos  = new ConsoleOnSteroids("Bash", "/bin/bash --login --noediting -i");
         *  Adds necessary Listeners to the ConsoleOnSteroids object
        private void addListeners() {
            /* Window Listener... what happens when the window is closed */
            this.addWindowListener(
                new java.awt.event.WindowAdapter() {
                    public void windowClosing(java.awt.event.WindowEvent evt) {
                        System.exit(0);
            this.jta.addKeyListener(
                new java.awt.event.KeyAdapter() {
                    public void keyTyped(java.awt.event.KeyEvent evt) {
                        textBoxKeyTyped(evt);
         *  Handles the typing of stuff in the text area
         * @param  evt  Description of Parameter
        private void textBoxKeyTyped(java.awt.event.KeyEvent evt) {
            jta.append(new String(new char[]{evt.getKeyChar()}));
            inp.print(evt.getKeyChar());
            inp.flush();
         *  This private class takes a BufferedReader and a JEditorPane as parameters for the
         *  constructor, and every time a line is avaliable on the reader, it appends it to the pane.
         * @author    dsm
        private class ThreadedStreamReader extends Thread {
            private BufferedReader reader;
            private JTextArea pane;
             *  Constructor for the ThreadedStreamReader object
             * @param  reader  The reader to take input from
             * @param  pane    The pane to dump the input in
             * @param  name    The name of the thread
            public ThreadedStreamReader(BufferedReader reader, JTextArea pane, String name) {
                this.reader = reader;
                this.pane = pane;
                this.setName(name);
             *  Main processing method for the ThreadedStreamReader object
            public void run() {
                while(ioc.isAlive()) {
                    try {
                        char c;
                        int i;
                        if((i = reader.read()) != -1) {
                            c = (char) i;
                            pane.append("" + c);
                    } catch(IOException ioe) {
                        System.err.println("Cannot read from " + this.getName() +
                            " because of an IOException:");
                        ioe.printStackTrace();
                        System.exit(2);
                System.exit(0);
    }file tests/IOControl.java
    /* File:    IOControl.java
    * created: 10/07/03
    * author:  dsm
    package tests;
    import java.io.BufferedReader;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.io.OutputStream;
    import java.io.PrintStream;
    *  Controls the I/O for a process. When using the std[in|out|err] streams, they must all be put on
    *  different threads to avoid blocking!
    * @author    dsm
    public class IOControl extends Object {
        private Process process;
        private BufferedReader stdout;
        private BufferedReader stderr;
        private PrintStream stdin;
        private boolean alive;
         *  Constructor for the IOControl object
         * @param  process  The process to control I/O for
        public IOControl(Process process) {
            this.process = process;
            final Process p  = process;
            new Thread(
                new Runnable() {
                    public void run() {
                        alive = true;  // set the adequate flag for the process
                        try {
                            p.waitFor();  // wait for process to end interfacethis thread
                        } catch(InterruptedException ie) {
                            System.err.println("An error ocurred during the execution of the process");
                            ie.printStackTrace();
                        } finally {
                            alive = false;  // the process has ended
                }).start();
            this.stdin = new PrintStream(process.getOutputStream());
            this.stdout = new BufferedReader(new InputStreamReader(process.getInputStream()));
            this.stderr = new BufferedReader(new InputStreamReader(process.getErrorStream()));
         *  Gets the stdin attribute of the IOControl object
         * @return    The stdin value
        public PrintStream getStdin() {
            return this.stdin;
         *  Gets the stdout attribute of the IOControl object
         * @return    The stdout value
        public BufferedReader getStdout() {
            return this.stdout;
         *  Gets the stderr attribute of the IOControl object
         * @return    The stderr value
        public BufferedReader getStderr() {
            return this.stderr;
         *  Gets the process attribute of the IOControl object
         * @return    The process value
        public Process getProcess() {
            return this.process;
         *  Gets the alive attribute of the IOControl object
         * @return    The alive value
        public boolean isAlive() {
            return alive;
    }thanks,
    dave.

    anyone?

  • Slow moving Mac after Yosemite

    I have a Macbook pro mid 2009.  I loved this computer until I downloaded Yosemite.  Now it is very slow.  It also gets extremely hot to the touch on the bottom of my computer after just a few mins of running it.  I’m close to throwing in the towel and getting a PC.    Please Help!
    EtreCheck version: 2.1.5 (108)
    Report generated December 24, 2014 at 2:07:49 PM EST
    Click the [Support] links for help with non-Apple products.
    Click the [Details] links for more information about that line.
    Click the [Adware] links for help removing adware.
    Hardware Information: ℹ️
      MacBook Pro (13-inch, Mid 2009) (Verified)
      MacBook Pro - model: MacBookPro5,5
      1 2.26 GHz Intel Core 2 Duo CPU: 2-core
      2 GB RAM Upgradeable
      BANK 0/DIMM0
      1 GB DDR3 1067 MHz ok
      BANK 1/DIMM0
      1 GB DDR3 1067 MHz ok
      Bluetooth: Old - Handoff/Airdrop2 not supported
      Wireless:  en1: 802.11 a/b/g/n
    Video Information: ℹ️
      NVIDIA GeForce 9400M - VRAM: 256 MB
      Color LCD 1280 x 800
    System Software: ℹ️
      OS X 10.10.1 (14B25) - Uptime: 0:19:27
    Disk Information: ℹ️
      Hitachi HTS545016B9SA02 disk0 : (160.04 GB)
      EFI (disk0s1) <not mounted> : 210 MB
      Macintosh HD (disk0s2) / : 159.18 GB (116.46 GB free)
      Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
      HL-DT-ST DVDRW  GS23N 
    USB Information: ℹ️
      Apple Inc. Built-in iSight
      Apple Internal Memory Card Reader
      Apple Computer, Inc. IR Receiver
      Apple Inc. Apple Internal Keyboard / Trackpad
      Apple Inc. BRCM2046 Hub
      Apple Inc. Bluetooth USB Host Controller
    Gatekeeper: ℹ️
      Mac App Store and identified developers
    Kernel Extensions: ℹ️
      /System/Library/Extensions
      [not loaded] us.rcs.omron.test (1.0.1) [Support]
    Launch Agents: ℹ️
      [loaded] com.google.keystone.agent.plist [Support]
      [running] com.motive.userAgent.plist [Support]
      [loaded] com.oracle.java.Java-Updater.plist [Support]
    Launch Daemons: ℹ️
      [loaded] com.adobe.fpsaud.plist [Support]
      [loaded] com.google.keystone.daemon.plist [Support]
      [running] com.motive.systemDaemon.plist [Support]
      [loaded] com.oracle.java.Helper-Tool.plist [Support]
    User Launch Agents: ℹ️
      [running] ws.agile.1PasswordAgent.plist [Support]
    User Login Items: ℹ️
      iTunesHelper UNKNOWN (missing value)
      Skype UNKNOWN (missing value)
    Internet Plug-ins: ℹ️
      o1dbrowserplugin: Version: 5.38.6.0 - SDK 10.8 [Support]
      Default Browser: Version: 600 - SDK 10.10
      Flip4Mac WMV Plugin: Version: 2.3.8.1 [Support]
      npMotive: Version: 1.0.0 - SDK 10.7 [Support]
      OfficeLiveBrowserPlugin: Version: 12.3.6 [Support]
      Silverlight: Version: 5.1.20913.0 - SDK 10.6 [Support]
      FlashPlayer-10.6: Version: 16.0.0.235 - SDK 10.6 [Support]
      DivXBrowserPlugin: Version: 2.0 [Support]
      Flash Player: Version: 16.0.0.235 - SDK 10.6 [Support]
      QuickTime Plugin: Version: 7.7.3
      googletalkbrowserplugin: Version: 5.38.6.0 - SDK 10.8 [Support]
      iPhotoPhotocast: Version: 7.0
      JavaAppletPlugin: Version: Java 8 Update 25 Check version
    User internet Plug-ins: ℹ️
      fbplugin_1_0_1: Version: Unknown [Support]
      fbplugin_1_0_3: Version: Unknown [Support]
    3rd Party Preference Panes: ℹ️
      DivX  [Support]
      Flash Player  [Support]
      Flip4Mac WMV  [Support]
      Java  [Support]
    Time Machine: ℹ️
      Time Machine not configured!
    Top Processes by CPU: ℹ️
          6% WindowServer
          0% syncdefaultsd
          0% AppleSpell
          0% com.apple.iCloudHelper
          0% ps
    Top Processes by Memory: ℹ️
      75 MB mds_stores
      58 MB Safari
      32 MB mds
      30 MB installd
      26 MB com.apple.WebKit.Networking
    Virtual Memory Information: ℹ️
      286 MB Free RAM
      525 MB Active RAM
      559 MB Inactive RAM
      338 MB Wired RAM
      1.65 GB Page-ins
      27 MB Page-outs
    Diagnostics Information: ℹ️
      Dec 24, 2014, 01:48:58 PM Self test - passed

    You're running in the absolute bare minimum ram to run just the OS, anything you try to do on top of that will slow your mac to a crawl. Take a look at OWC for upgrade options http://eshop.macsales.com

  • Conversion Error: I/O error while communicating with native process

    Hi,
    I am trying to use Oracle Outside In Technology Image Export for conversion of images. I am trying to run the example ExportTest that comes with the downloaded SDK.
    I get the below error while running the ExportTest example.
    Conversion Error: I/O error while communicating with native process .
    Am I missing any settings?
    Please guide to the right forum if this is not the one for posting queries on Oracle Outside In Technology Image Export.
    Thank you.

    Hi Revanth,
    I am using Image Export 8.3.7 and I am trying to run the java class "ExportTest" that is in the location sdk\samplecode\ExJava\Examples\ExportTest\src of the download.
    My input folder has one jpg - puzzle.jpg (this is just a simple jpg), I am trying to convert it to TIFF. ExportTest.java uses the classes in Export.jar . Export.jar is located in the sdk\samplecode\ExJava\Examples\ExportTest . You can see source files of the Export.jar at location sdk\samplecode\ExJava\Java API\src of the download. I am running the 'ExportTest' by providing the arguments (input folder, output folder and ix.cfg - this file comes with the download). So now when I run this class I was getting the error I mentioned in this post. Inorder to find more details about the error I modified the 'Export.java' (at sdk\samplecode\ExJava\Java API\src\com\outsideinsdk) just to printStackTrace when the exception occurs and rebuilt the 'Export.jar' and ran the 'ExportTest.java'.
    And below is the stack trace that I got :
    java.io.IOException: CreateProcess: nullexporter.exe "inputpath_u=AGkAbgBwAHUAdA
    BcAHAAdQB6AHoAbABlAC4ASgBQAEc=" "outputpath_u=AG8AdQBwAHUAdABcAHAAdQB6AHoAbABlAC
    4ASgBQAEcALgBUAEkARgBG" "outputid=FI_TIFF" "fallbackformat=FI_TEXT" "tiffcolorsp
    ace=24BitRGB" "preferoitrendering=false" "tiffcompression=Packbits" "mapbuffersi
    ze=8192" "defaultprintfontheight=20" "graphicwidthlimit=0" "reordermethod=off" "
    unmappablechar=0x002A" "timezone=0" "graphicheightlimit=0" "defaultmarginleft=14
    40" "ssshowheadings=false" "quickthumbnail=false" "graphicoutputdpi=0" "ssdirect
    ion=AcrossandDown" "defaultmarginbottom=1440" "ssshowgridlines=false" "dbshowhea
    dings=false" "readbuffersize=2" "whattoexport=all" "graphicsizelimit=0" "imagewa
    termarkopacity=0" "blue=-1" "handlenewfileinfo=no" "outputid=FI_TIFF" "lzwcompre
    ssion=enabled" "usedocpagesettings=true" "defaultmarginright=1440" "numberofstat
    callbacks=0" "dbfittopage=NoScaling" "tempbuffersize=2048" "pdffilterreorderbidi
    =no" "imagecropping=nocropping" "defaultmargintop=1440" "documentmemorymode=larg
    e" "m?
    at java.lang.Win32Process.create(Native Method)
    at java.lang.Win32Process.<init>(Win32Process.java:66)
    at java.lang.Runtime.execInternal(Native Method)
    at java.lang.Runtime.exec(Runtime.java:566)
    at java.lang.Runtime.exec(Runtime.java:491)
    at java.lang.Runtime.exec(Runtime.java:457)
    at com.outsideinsdk.Export.convert(Export.java:262)
    at com.outsideinsdk.ExportTest.convert(ExportTest.java:142)
    at com.outsideinsdk.ExportTest.main(ExportTest.java:214)
    hope this helps to find the problem.
    Thank you

  • Error when running setup: Attach to native process

    Hi,
    I try to install the oracle iplanet webserver (version 7.0.13) on linux (centos 6.2, 64 bits).
    I first installed the compat-libstdc++-33 packages.
    After that I installed JRE, this version:
    java version "1.6.0_31"
    Java(TM) SE Runtime Environment (build 1.6.0_31-b04)
    Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)
    To install the iplanet webserver I first extract the content of the downloaded file (Oracle-iPlanet-Web-Server-7.0.13-linux-x64).
    Then I try to run setup with the command ./setup
    The error I get is: attach to native process failed.
    Any idea what is wrong?
    Regards Stefan
    Thanks for the help.

    Stefan,
    I am seeing the same error on Ubuntu 12.04 Precise Pangolin (which is admittedly unsupported). This happened to me once before on an older version of Ubuntu, and as I recall, it was a missing library dependency, but I am not able to locate the fix I came up with at that time.
    Interestingly, my existing ws7u12 installation runs fine, I just cannot upgrade to the latest update (15).
    I have this software under support, but only on Solaris (I develop on Ubuntu, but deploy to my production Solaris server). In any case, as Ubuntu is not officially supported, opening an SR for this problem would be a waste of time.
    I'll continue digging for my old solution and post here if I find it. If you've since discovered the solution, I'd love to hear it.
    Thanks,
    Bill

  • Very slow running Mac Mini

    Hi,
    I'd like to thank all people supporting us (users) in these discussions, and especially the person who helped me restoring my MBP's performance,
    I'm requesting once again some help for my Mac Mini which is very very slow.
    Mac Mini running OS X Moutain Lion + Apple's Server add-on (a few services are running : file sharing mainly).
    Thanks in advance,

    Hello Hedi, see how many of these you can answer...
    See if the Disk is issuing any S.M.A.R.T errors in Disk Utility...
    http://support.apple.com/kb/PH7029
    Open Activity Monitor in Applications>Utilities, select All Processes & sort on CPU%, any indications there?
    How much RAM & free Disk space do you have also, click on the Memory & Disk Usage Tabs.
    Open Console in Utilities & see if there are any clues or repeating messages when this happens.
    In the Memory tab of Activity Monitor, are there a lot of Pageouts?

  • Java Plugin not running on Mac OS X browsers

    Hi
    I have created an applet that runs on any browser on Windows, and runs only as an application on Mac OS X. But when I try to run it as an applet on Mac OS X, it does not run. I have installed the latest Java from apple, and changed the preferences to run 1.6 Java on the browsers.
    I get the following error:
    MRJ Plugin for Mac OS X v1.0.1
    [starting up Java Applet Security @ Tue Feb 03 11:34:26 EST 2009]
    basic: Referencing classloader: sun.plugin.ClassLoaderInfo@c7980c, refcount=1
    basic: Added progress listener: sun.plugin.util.GrayBoxPainter@36a1a1
    basic: Loading applet/u2026
    basic: Initializing applet/u2026
    basic: Referencing classloader: sun.plugin.ClassLoaderInfo@c7980c, refcount=2
    basic: Releasing classloader: sun.plugin.ClassLoaderInfo@c7980c, refcount=1
    basic: httpCompression = true
    network: Connecting http://192.168.2.50:8080/MCA_V3_1/Clientlib/lms-common.jar with proxy=DIRECT
    basic: Downloading http://192.168.2.50:8080/MCA_V3_1/Clientlib/lms-common.jar to cache
    basic: encoding = null for http://192.168.2.50:8080/MCA_V3_1/Clientlib/lms-common.jar
    basic: Cached file name: lms-common.jar-277a142b-79528a22.zip
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Checking if certificate is in Deployment session certificate store
    security: User has granted the priviledges to the code for this session only
    security: Adding certificate in Deployment session certificate store
    security: Added certificate in Deployment session certificate store
    security: Saving certificates in Deployment session certificate store
    security: Saved certificates in Deployment session certificate store
    java.lang.UnsupportedClassVersionError: Bad version number in .class file
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
         at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:147)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
         at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:119)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:605)
         at sun.applet.AppletPanel.createApplet(AppletPanel.java:723)
         at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1864)
         at jep.AppletFramePanel.createApplet(AppletFramePanel.java:189)
         at sun.applet.AppletPanel.runLoader(AppletPanel.java:652)
         at sun.applet.AppletPanel.run(AppletPanel.java:326)
         at jep.AppletFramePanel.run(AppletFramePanel.java:176)
         at java.lang.Thread.run(Thread.java:613)
    basic: Exception: java.lang.UnsupportedClassVersionError: Bad version number in .class file
    java.lang.UnsupportedClassVersionError: Bad version number in .class file
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
         at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:147)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
         at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:119)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:605)
         at sun.applet.AppletPanel.createApplet(AppletPanel.java:723)
         at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1864)
         at jep.AppletFramePanel.createApplet(AppletFramePanel.java:189)
         at sun.applet.AppletPanel.runLoader(AppletPanel.java:652)
         at sun.applet.AppletPanel.run(AppletPanel.java:326)
         at jep.AppletFramePanel.run(AppletFramePanel.java:176)
         at java.lang.Thread.run(Thread.java:613)
    Any ideas how I can fix this?
    Thanks,
    GK

    After doing some research, I still cannot fix this problem.
    I Build the applet on Mac OS X using netbeans 6.7.1, with Java 6 (64-bit, there is no Java 6 - 32 Bit on Mac OS X)
    When I run the applet on safari or firefox on Mac OS X, The console says running on Java 5. (Although the properties have been changed in Mac OS X /Utilities/Java Preferences)
    I have been struggling with no end in site, for this issue.
    I was able to get the Applet working by reverting to Java 5 and using the Java Swing jar from Java.net. But I still want to be able to just use Java 6 in Mac OS X. (I can't use the GUI Builder in netbeans with the separate swing jar).
    ANY HELP please.

  • Reading native process standard output stream with ProcessBuilder

    Hi,
    I'd like to launch an native process (windows application) which writes on standard output during its running.
    I'd like to view my application output on a JTextArea on my Java frame (Swing). But I do get all process output
    on text area only when the process is finished (it takes about 20 seconds to complete). My external process is
    launched by using a ProcessBuilder object.
    Here is my code snippet with overridden doInBackground() and process() methods of ProcessBuilder class:
    @Override
    public String doInBackground() {
    jbUpgrade.setEnabled(false);
    ProcessBuilder pb = new ProcessBuilder();
    paramFileName = jtfParameter.getText();
    command = "upgrade";
    try {
    if (!(paramFileName.equals(""))) {
    pb.command(command, jtfRBF.getText(), jtfBaseAddress.getText(), "-param", paramFileName);
    } else {
    pb.command(command, jtfRBF.getText(), jtfBaseAddress.getText());
    pb.directory(new File("."));
    pb.redirectErrorStream(false);
    p = pb.start();
    try {
    InputStream is = p.getInputStream();
    InputStreamReader isr = new InputStreamReader(is);
    BufferedReader br = new BufferedReader(isr);
    String line;
    jtaOutput.setText("");
    while ((line = br.readLine()) != null) {
    publish(line);
    } catch (IOException ex) {
    Logger.getLogger(CVUpgradeFrame.class.getName()).log(Level.SEVERE, null, ex);
    } catch (IOException ex) {
    Logger.getLogger(CVUpgradeFrame.class.getName()).log(Level.SEVERE, null, ex);
    jtaOutput.setText("");
    jtaOutput.setLineWrap(true);
    jtaOutput.append("Cannot execute requested commmad:\n" + pb.command());
    jtaOutput.append("\n");
    jtaOutput.setLineWrap(false);
    return "done";
    @Override
    protected void process(List<String> line) {
    jtaOutput.setLineWrap(true);
    Iterator<String> it = line.iterator();
    while (it.hasNext()) {
    jtaOutput.append(it.next() + newline);
    jtaOutput.repaint();
    //Make sure the new text is visible, even if there
    //was a selection in the text area.
    jtaOutput.setCaretPosition(jtaOutput.getDocument().getLength());
    How can I get my process output stream updated while it is running and not only when finished?
    Thanks,
    jluke

    1) Read the 4 sections of http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html and implement the recommendations. Although it is concerned with Runtime.exec() the recommendations still apply to Process generated by ProcessBuilder.
    2) Read about concurrency in Swing - http://java.sun.com/docs/books/tutorial/uiswing/concurrency/ .
    3) Use SwingUtilities.invokeLater() to update your GUI.

  • How to set the Native Process Installer generatedFile.exe's icon

    hi
    i have made the (Native Process packaged) .exe by using adt command
    how can i change the default icon to the desiered one
    thanks,
    Dhaivat

    Ah I see what you mean now.  Unfortunately, this isn't available directly through AIR.  However, there are third party utilities on Windows that will allow you to modify the icon resources and it should be simple enough on Mac through File Info.
    If you'd like to see this functionality added to AIR, I'd like to suggest you add a feature request to our ideas.adobe.com page.
    Thanks,
    Chris

  • Running native processes internally

    Just like Eclipse runs javaw.exe without the java process appearing in the processes list, and air apps probably do the same with the air runtime.
    is it possible to do the same with air apps to run other processes?
    for example im thinking of writing a java jar app which mediates a java socket and building a as3 class which simulates the socket class (when actually its just using native process), but i dont want the air app to apear to be running 2 processes.
    how can i do this?
    thank you
    marcidus

    are both your variabels called name? in the same scope??
    Robert

  • Java Webservice client slow compared to dot net client

    we have DotNet webservice which is being called by two clients , one a dotnet client and other a javaclient
    The problem is java client is taking longer time in processing the results when compared to dotnet client and affecting the performance greatly , i'm using axis in java
    Is there any know issue with axis regarding my situation here.
    also the same java client when run on linux platform still longer time to process.
    please provide me some pointer here

    I would test the general performance difference between the 2 platforms on the same machine.
    I have the feeling that Java is generally slower on windows than .NET
    Microsoft has their secrets after all.

  • What is "native resolution" for my mac mini G4?

    I'm going to buy a 22" Samsung monitor with 1920 x 1080 resolution specs for the mac mini, PPC G4 model. I realize the resolution can be adjusted on the computer, and I need the refresh rate lower than the specified 154mhz limit for "cohesive" monitors. That aside, I remember a term "native resolution for the Mac" and I'm thinking this is, for comparison sake, where the mac should display to make text on a word processing document look 1:1 life size. Also, it will make 1" of graphics appear on 1" of the screen. Am I correct?
    I'm wondering because when I run the Samsung monitor at 1920 x 1080, will I end up with tiny, scaled-down graphics and text? And, if so, will there be an ideal resolution to adjust the monitor to?
    Hope I'm not too clueless on this.... I haven't used a large monitor in some time and don't remember where my 19" CRT used to be set!
    Thanks much for help!

    cocteau3,
    You may be confusing native with default.  The G3 desktop would default to 640 by 480 if you zapped the PRAM.  You then went into monitors and sound to increase the resolution to what ever the monitor would support and the onboard video port would support. 
    Before the days of multi-sync monitors, the resolution was fixed for each monitor.  Until the Mac II, you had a fixed resolution monitor built in.  With the introduction of the NUBUS card, you could buy a card with support for a larger display that was also a fixed resolution. 
    The Mac IIcx had no onboard video.  You bought a NUBUS card for what ever monitor size you wanted.  The card and monitor usually came together.  With the Mac IIci, in an almost identical case, you had an onboard video port plus the option to add up to three nubus video cards.  Native for that onboard video port was now based on the maximum number of pixels that could be supported at thousands of colors or millions of colors.  If you wanted millions of colors, you had to add more VRAM or reduce the matrix from 1024 by 748 to 640 by 480.  Some games had to be at 256 colors because that is how they were programmed.  If you wanted 1024 by 768, you had to settle for thousands of colors, or less color depth than millions.  It was simply math.  How much math could the computer video port handle?
    At our store, in 1999, we had a Quadra 950 set up with five displays.  The onboard video would only support 640 by 480 if you wanted millions of colors.  That was the native size.  Increase the image area (or monitor size) and you decreased the image size.  By having four NUBUS cards installed, you could have five monitors connected at once.  It was very easy to demonstrate that a 20" monitor could display 640 by 480 and have large text - viewable by the visually impared.  A second 20" monitor was set for 1152 by 870 and the text was tiny.  Also displayed was a 17" multi-sync that could change resolution. 
    With the advent of muti-resolution monitors, the idea of 'native resolution' has been replaced by 'supported resolutions.' A monitor may have a default setting but if it is multi-sync, there is no such thing as native.  Just factory default.  Set any size and frequency you like, so long as that frequency is supported.
    This is the best historical link I found:
    http://www.proaxis.com/~ferris/docs/dpi-monitor.html
    Note that 72dpi was convertable to typesetting because of that long forgotten concept of desktop publishing.
    Finally, you can have a large display set at 1600 x 1200 to display many windows and have one window zoomed in to show text at 200%.  So many variables that native is not as useful as twenty years ago.
    Ji~m

Maybe you are looking for

  • How do I update timecapsule wi-fi settings?

    My iMac connects wirelessly to my timecapsule to perform regular backups. However, I now have a new broadband provider and therefore home network and i can no longer connect to the Timecapsule. Airport was previously showing that a Timecapsule was pr

  • Trouble syncing my new ipod

    Everytime I try to sync my new and old ipod I get the following error message: Attempting to copy to the disk "NANO" falied. You do not have enough access privileges for this operation. iTunes could not save to your music folder because you do not ha

  • Same Port Type in multiple orchestration

    Hi, I have four ports in "Orchestration A" and four port types for it. I have chosen the same port type (CodecoRcvPortType) for another port in "Orchestration B" in the same project. But i am not able choose the operation for the receive shape. When

  • Oracle Upgrade - Help

    Hi, We are planning to upgrade our Oracle RDBMS from 9(9.2.0.7) to 10R2. As a preparation I was performing some test on a staging server. I simulated our current env by installing 9.2.0.7 and creating the DB. This is under an oracle9i unix user (oins

  • Urgent: Oracle AccessDeniedException:

    Hi, I am trying to upload the RTF and other files in UNIX environment. But im getting the following error. Kindly let me know the solution for below error. Urgent Error: "oracle.apps.xdo.webservice.exception.Acc essDeniedException:java.lang.SecurityE