GUI ..Process and threads

Hi..Folks
Is it possible to read the output of a class by starting it as a separate thread in a GUI application?
Currently we follow this approach. We start the class as a separate process (passing in what ever parameters needed) in the GUI(using RunTime.exec()). Read the output.
But we need a reference to the class that is being started.
Is it possible to get a reference to the class?
Thanks in advance.

Thanks for your replies.
Oki this time i will be more specific..I want to start and read the output of a thread..So while the thread is executing I can hook in to the output stream and read the output simultaneously...Actually I came across this link [Convert a Java OutputStream to an InputStream|http://ostermiller.org/convert_java_outputstream_inputstream.html] ... which suggests some idea to it...But the code gives compilation error (the bold line) ..."Cannot refer to a non-final variable in inside an inner class defined in a different method"..I have attached the code..Any ideas?
Readin.java creates the thread and sends in the PipedInputStream to tt.java's putDataOnOutputStream() which writes to the stream back...
Readin.java
byte[] b = null;
           PipedInputStream in = new PipedInputStream();
           PipedOutputStream out ;
          try {
               out = new PipedOutputStream(in);
          } catch (IOException e) {
               e.printStackTrace();
            new Thread(
              new Runnable(){
                public void run(){
                  try {
                    *     new tt().putDataOnOutputStream(new PipedOutputStream(in));*
                    } catch (IOException e) {
                         // TODO Auto-generated catch block
                         e.printStackTrace();
            ).start();
           try {
               in.read(b);
          } catch (IOException e) {
               e.printStackTrace();
           String str = new String(b);
           System.out.println(str);
...          And the code for the other class is
... tt.java.....
public  void putDataOnOutputStream(ByteArrayOutputStream out){
          String str="test";
          try {
               out.write(str.getBytes());
          } catch (IOException e) {
               // TODO Auto-generated catch block
               e.printStackTrace();
     }

Similar Messages

  • Understanding asynchronous BPEL processes and threading

    Hi everybody,
    I have a question regarding asynchronous BPEL processes and threading.
    I have an asynchronous BPEL process which delivers a message (picked up from a JMS topic) to a repository (via for instance an ICAN server). This transaction must be time-sensitive, i.e. first-in is first-out.
    If I have several threads running concurrently I have no guarantee that the messages are delivered in the same order that they where generated. It seems that the suggested way around this problem is to use single-threading.
    So here's the part that I do not understand:
    An asynchronous request does not wait for a response. If I use single-threading then what happens to that single-thread if for some reason (for instance the ICAN server is not responding) the BPEL instance is dehydrated? Is the thread still allocated for waiting for the first response or does it go back and pick up the next thing on the topic? If the next thing on the topic is picked up then how can I be sure that the messages are delivered in the correct order? If the thread is still allocated to the single instance then does that not kindda go against the whole concept of an asynchronous process?
    I hope some one can explain this to me.
    Thank you in advance.
    Kind regards,
    Mathias
    PS. This question is an attempt of a different angle on another forum thread: Asynchronuos BPEL - how to get the order of messages right?

    Hi again,
    A quick follow up question:
    Is there any way to have several BPEL processes running on the same server with different settings for how many threads to use?
    It seems that the only way to set number of threads used by BPEL is to use the configuration in the BPEL console? This is an domain setting - which means that all processes deployed to the server is effected the same way?
    I am asking because I am facing a scenario where I need one BPEL process to read from a AQ queue (well actually a topic) with a single thread and another BPEL process - deployed to the same BPEL server - to read from the same AQ queue with multiple threads.
    Does anyone have any idea of how to do this? Can it be done?
    Any suggestions, hints or reference to any documentation would be very much appreciated.
    Thank you in advance,
    Aagaard

  • Process and Thread

    I am new to the servlet and JSP technology.It is said that "Servlets and CGI differ mainly in Process and Thread.CGI used processes and Servlet technology uses Threads".I would like to know what exacly is the meaning of a process and a thread.How do we say that a process uses higher resources and hence a higher resource and memory overhead.
    What do we exactly mean by thread and how r they using less resources?When we say Thread t=new Thread(); what exactly is happening inside?

    A thread runs with in the context of the JVM process.
    http://java.sun.com/docs/books/tutorial/essential/threads/definition.html
    A process is the running of an executable. A cgi can be a C .exe file or a perl script run under perl.exe.
    The thread is faster because the jvm process has been loaded into memory and initialized. For each cgi call the operating system has to load the code into memeory and intialize all the variables and resources.
    http://c2.com/cgi/wiki?CgiVsServlet
    http://www.disc.com/jdbcserv.html

  • Process and threads

    Dear community
    Very kindly pleasant about information that is fiber in thread process and threads it interface between user and application ?
    is this answer on user ask in application run ?
    About any advises who concerns this matter , please .

    Hello RB_1.
    You can find more informations about fibers
    here and
    here on the MSDN Library.
    Bye.
    Luigi Bruno
    MCP, MCTS, MOS, MTA

  • OracleIAS and Information about Process and Threads

    Hi all,
    I need to know information about the running process and threads inside a Conteiner or an Enterprise Application, is it possible?
    Thanks in advance.

    Hi,
    Probably all of mentioned in some extent - depends, which data system needs.
    regards,
    wojciech

  • JDK 1.6 on Solaris. Multiple java processes and thread freezes

    Hi, we've come across a really weird behavior on the Solaris JVM, reported by a customer of ours.
    Our server application consists of multiple threads. Normally we see them all running within a single Java process, and all is fine.
    At some point in time, and only on Solaris 10, it seems that the main Java process starts a second Java process. This is not our code trying to execute some other application/command. It's the JVM itself forking a new copy of itself. I assumed this was because of some JVM behaviour on Solaris that uses multiple processes if the number of threads is > 128. However at the time of spawn there are less than 90 threads running.
    In any case, once this second process starts, some of the threads of the application (incidentally, they're the first threads created by the application at startup, in the first threadgroup) stop working. Our application dumps a list of all threads in the system every ten minutes, and even when they're not working, the threads are still there. Our logs also show that when the second process starts, these threads were not in the running state. They had just completed their operations and were sleeping in their thread pool, in a wait() call. Once the second process starts, jobs for these threads just queue up, and the wait() does not return, even after another thread has done a notify() to inform them of the new jobs.
    Even more interesting, when the customer manually kills -9 the second process, without doing anything in our application, all threads that were 'frozen' start working again, immediately. This (and the fact that this never happens on other OSes) makes us think that this is some sort of problem (or misconfiguration) specific to the Solaris JVM, and not our application.
    The customer initially reported this with JDK 1.5.0_12 , we told them to upgrade to the latest JDK 1.6 update 6, but the problem remains. There are no special JVM switches (apart from -Xms32m -Xmx256m) used. We're really at a dead end here in diagnosing this problem, as it clearly seems to be outside our app. Any suggestion?

    Actually, we've discovered that that's not really what was going on. I still believe there's a bug in the JVM, but the fork was happening because our Java code tries to exec a command line tool once a minute. After hours of this, we get a rogue child process with this stack (which is where we are forking this command line tool once a minute):
    JVM version is 1.5.0_08-b03
    Thread t@38: (state = IN_NATIVE)
    - java.lang.UNIXProcess.forkAndExec(byte[], byte[], int, byte[], int, byte[], boolean, java.io.FileDescriptor, java.io.FileDescriptor, java.io.FileDescriptor) @bci=168980456 (Interpreted frame)
    - java.lang.UNIXProcess.forkAndExec(byte[], byte[], int, byte[], int, byte[], boolean, java.io.FileDescriptor, java.io.FileDescriptor, java.io.FileDescriptor) @bci=0 (Interpreted frame)
    - java.lang.UNIXProcess.<init>(byte[], byte[], int, byte[], int, byte[], boolean) @bci=62, line=53 (Interpreted frame)
    - java.lang.ProcessImpl.start(java.lang.String[], java.util.Map, java.lang.String, boolean) @bci=182, line=65 (Interpreted frame)
    - java.lang.ProcessBuilder.start() @bci=112, line=451 (Interpreted frame)
    - java.lang.Runtime.exec(java.lang.String[], java.lang.String[], java.io.File) @bci=16, line=591 (Interpreted frame)
    - java.lang.Runtime.exec(java.lang.String, java.lang.String[], java.io.File) @bci=69, line=429 (Interpreted frame)
    - java.lang.Runtime.exec(java.lang.String) @bci=4, line=326 (Interpreted frame)
    - java.lang.Thread.run() @bci=11, line=595 (Interpreted frame)There are also several dozen other threads all with the same stack:
    Thread t@32: (state = BLOCKED)
    Error occurred during stack walking:
    sun.jvm.hotspot.debugger.DebuggerException: can't map thread id to thread handle!
         at sun.jvm.hotspot.debugger.proc.ProcDebuggerLocal.getThreadIntegerRegisterSet0(Native Method)
         at sun.jvm.hotspot.debugger.proc.ProcDebuggerLocal.getThreadIntegerRegisterSet(ProcDebuggerLocal.java:364)
         at sun.jvm.hotspot.debugger.proc.sparc.ProcSPARCThread.getContext(ProcSPARCThread.java:35)
         at sun.jvm.hotspot.runtime.solaris_sparc.SolarisSPARCJavaThreadPDAccess.getCurrentFrameGuess(SolarisSPARCJavaThreadPDAccess.java:108)
         at sun.jvm.hotspot.runtime.JavaThread.getCurrentFrameGuess(JavaThread.java:252)
         at sun.jvm.hotspot.runtime.JavaThread.getLastJavaVFrameDbg(JavaThread.java:211)
         at sun.jvm.hotspot.tools.StackTrace.run(StackTrace.java:50)
         at sun.jvm.hotspot.tools.JStack.run(JStack.java:41)
         at sun.jvm.hotspot.tools.Tool.start(Tool.java:204)
         at sun.jvm.hotspot.tools.JStack.main(JStack.java:58)I'm pretty sure this is because the fork part of the UnixProcess.forkAndExec is using the Solaris fork1 system call, and thus all the Java context thinks all those threads exist, whereas the actual threads don't exist in that process.
    It seems to me that something is broken in UnixProcess.forkAndExec in native code; it did the fork, but not the exec, and this exec thread just sits there forever. And of course, it's still holding all the file descriptors of the original process, which means that if we decide to restart our process, we can't reopen our sockets for listening or whatever else we want to do.
    There is another possibility, which I can't completely rule out: this child process just happened to be the one that was fork'd when the parent process called Runtime.halt(), which is how the Java process exits. We decided to exit halfway through a Runtime.exec(), and got this child process stuck. But I don't think that's what happens... from what I understand that we collected, we see this same child process created at some point in time, and it doesn't go away.
    Yes, I realize that my JVM is very old, but I cannot find any bug fixes in the release notes that claim to fix something like this. And since this only happens once every day or two, I'm reluctant to just throw a new JVM at this--although I'm sure I will shortly.
    Has anyone else seen anything like this?

  • Process and thread CPU%

    Hello,
    Is there a utility to allow me to view CPU usage of my process and its inidividual threads (i.e. not "top").
    Thanks,
    Neil

    tray
    sar n
    where n is the time period
    Ahmed fathy

  • What is the difference between Process and Threads

    What is the difference between Process and Threads

    http://forum.java.sun.com/thread.jsp?forum=45&thread=525518&start=0&range=15#2519429

  • GUI Update and Threads

    Hello all, I'm new to Java and am having a hard time trying to understand how to implement multi-threading. I've built a simple app with GUI for converting files between encodings. The program works fine but some files take a long time to convert so I want to show the user some status text in the GUI. The conversion function is called from within a button click event, and further from within a loop that cycles through a directory of files to convert. I'm trying to show the name of the file being converted in a label in the GUI, but the label won't update until the button click event finishes, so only the last file converted is displayed.
    I've read through countless examples on this forum and others, and in several online books. I understand the concept of multi-threading and some of the issues surrounding them, but can't seem to grasp the mechanics of getting them set up in code at this point.
    Can anyone provide some coding tips? The code is provided below minus the NetBeans generated layout code. I can provide this also if needed. You'll see some lines commented out in the For loop that I tried but that didn't work.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.io.*;
    public class EnCon4 extends javax.swing.JFrame {
        //Declare variables and set default values
        String fname="UTF-16";
        String tname="UTF8";
        String infile;
        String outfile;
        /** Creates new form EnCon4 */
        public EnCon4() {
            initComponents();
        private void encodingToListActionPerformed(java.awt.event.ActionEvent evt) {                                              
            tname=(String)encodingToList.getSelectedItem();
        private void encodingFromListActionPerformed(java.awt.event.ActionEvent evt) {                                                
            fname=(String)encodingFromList.getSelectedItem();
        private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                        
            jLabelStatus.setText("Converting From: " + fname + "  To: " + tname);
            jLabelStatus.repaint();
         File dir1 = new File ("."); //Set current directory
         //Create new subdirectory for converted files
         String newDirName = dir1 + File.separator + "Conv"; 
             File dir2 = new File(newDirName);
             if (!dir2.exists()) {
                dir2.mkdir();
             try {
                //Set path to current directory
                File pathName = new File(dir1.getCanonicalPath());
                File[] contents = pathName.listFiles();
                for (File file : contents) {
                    if (!file.isDirectory()) {
                        //Create the converted files
                    //Set variables
                    infile = dir1.getCanonicalPath() + File.separator + file.getName();
                    outfile = dir2.getCanonicalPath() + File.separator + file.getName();
                    //Check file names to exclude converting the java class file
                    if (!infile.endsWith("class") & !infile.endsWith("jar")) {
                            //Print the file name
                            jLabelStatus.setText("Converting file:  " + file.getName());
                            jLabelStatus.repaint();
                            //catch (Exception econ) {
                            //    System.out.print(econ.getMessage());
                            //    System.exit(1);
                            //System.out.println(file.getName());
                       //Call conversion function in a new thread.
                       //Example with static args //try { convert("NamesASCII.txt", "UTF8.txt", "ISO8859_1", "UTF8"); }
                           //Thread t = new Thread(new Runnable() {
                                //public void run() {
                                try {convert(infile, outfile, fname, tname);
                                catch (Exception econ) {
                                    jLabelStatus.setText(econ.getMessage());
                                    jLabelStatus.repaint();
                                    //System.out.print(econ.getMessage());
                                 //System.exit(1);
                            //t.start();
                //jLabelStatus.setText("Conversion complete.");
                //jLabelStatus.repaint();
             catch(IOException econ) {
                jLabelStatus.setText("Error: " + econ);
                //System.out.println("Error: " + econ);
        public static void convert(String infile, String outfile, String from, String to)
            throws IOException, UnsupportedEncodingException {
            // set up byte streams
            InputStream in;
            if (infile != null) in = new FileInputStream(infile);
            else in = System.in;
            OutputStream out;
            if (outfile != null) out = new FileOutputStream(outfile);
            else out = System.out;
            // Set up character stream
            Reader r = new BufferedReader(new InputStreamReader(in, from));
            Writer w = new BufferedWriter(new OutputStreamWriter(out, to));
            // Copy characters from input to output.  The InputStreamReader
            // converts from the input encoding to Unicode, and the OutputStreamWriter
            // converts from Unicode to the output encoding.  Characters that cannot be
            // represented in the output encoding are output as '?'
            char[] buffer = new char[4096];
            int len;
            while((len = r.read(buffer)) != -1)
              w.write(buffer, 0, len);
            r.close();
            w.flush();
            w.close();
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new EnCon4().setVisible(true);
        // Variables declaration - do not modify                    
        private javax.swing.JComboBox encodingFromList;
        private javax.swing.JComboBox encodingToList;
        private javax.swing.JButton jButton1;
        private javax.swing.JLabel jLabel1;
        private javax.swing.JLabel jLabel2;
        private javax.swing.JLabel jLabel3;
        private javax.swing.JLabel jLabelStatus;
        private javax.swing.JPanel jPanel1;
        // End of variables declaration                  
    }

    There are two key principles here. The first is "remove long-running
    processes from the event dispatch thread". If in doubt, you
    can check with SwingUtilities.isEventDIspatch(). The second is
    "put GUI updates on the event dispatch thread", preferable
    with SwingUtilities.invokeLater().
    Today is my last day at work, so here's a fish:
    import java.awt.event.*;
    import java.io.*;
    import javax.swing.*;
    public class EnCon extends JFrame{
        String fname="UTF-16";
        String tname="UTF8";
        String infile;
        String outfile;
        /** Creates new form EnCon4 */
        public EnCon() {
            super("EnCon");
            jButton1.addActionListener(new ActionListener() {
                public void actionPerformed(final ActionEvent ae) {
                    final Thread t = new Thread(new MyRunner());
                    t.start();
            final JPanel container = new JPanel();
            container.add(jButton1);
            container.add(jLabelStatus);
            this.getContentPane().add(container);
            this.pack();
            this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        private class MyRunner implements Runnable {
            public void run() {
                sendMessage("Converting From: " + fname + "  To: " + tname);
                File dir1 = new File ("."); //Set current directory
                //Create new subdirectory for converted files
                String newDirName = dir1 + File.separator + "Conv";
                File dir2 = new File(newDirName);
                if (!dir2.exists()) {
                    dir2.mkdir();
                try {
                    //Set path to current directory
                    File pathName = new File(dir1.getCanonicalPath());
                    File[] contents = pathName.listFiles();
                    for (File file : contents) {
                        if (!file.isDirectory()) {
                            infile = dir1.getCanonicalPath() + File.separator + file.getName();
                            outfile = dir2.getCanonicalPath() + File.separator + file.getName();
                            if (!infile.endsWith("class") & !infile.endsWith("jar")) {
                                sendMessage("Converting file:  " + file.getName());
                                try {
                                    convert(infile, outfile, fname, tname);
                                    sendMessage("Done");
                                catch (Exception econ) {
                                    sendMessage(econ.getMessage());
                catch(IOException econ) {
                    sendMessage("Error: " + econ);
            private void sendMessage(final String message) {
                SwingUtilities.invokeLater(new Runnable() {
                    public void run() {
                        jLabelStatus.setText(message);
        public static void convert(String infile, String outfile, String from, String to)
        throws IOException, UnsupportedEncodingException {
            // set up byte streams
            InputStream in;
            if (infile != null) in = new FileInputStream(infile);
            else in = System.in;
            OutputStream out;
            if (outfile != null) out = new FileOutputStream(outfile);
            else out = System.out;
            // Set up character stream
            Reader r = new BufferedReader(new InputStreamReader(in, from));
            Writer w = new BufferedWriter(new OutputStreamWriter(out, to));
            // Copy characters from input to output.  The InputStreamReader
            // converts from the input encoding to Unicode, and the OutputStreamWriter
            // converts from Unicode to the output encoding.  Characters that cannot be
            // represented in the output encoding are output as '?'
            char[] buffer = new char[4096];
            int len;
            while((len = r.read(buffer)) != -1)
                w.write(buffer, 0, len);
            r.close();
            w.flush();
            w.close();
        public static void main(String args[]) {
            new EnCon().setVisible(true);
        // Variables declaration - do not modify
        private JButton jButton1 = new JButton("Convert");
        private JLabel jLabelStatus = new JLabel("jLabelStatus");
        // End of variables declaration
    }

  • Process and thread execution time

    HI all
    I am doing a project to develop a high level simulation framework. In the project I need to calculate the number of cycles of a snippet of code in a thread. Like
    void func()
    event1():
    int x;
    x = x * x;
    for();
    while();
    exec(numberofcyles)
    event2();
    Here I want to calculate the number of cycles between event1 and event2 and pass these number of cycles to the exec(numberofcycles) which will later on be simulated. I investigated a number of tools like gprof, Dtrace, linux process statistics, rdstc, getrusage(). None of these seems to be very relevent.
    I tried linux process statistics i.e. /proc/<pid>/task/<tid>/stat. I can access the execution time of threads, but all the time I get 0 execution time. What I think that it reads the execution time of threads when it was started. Is there any way to get the updated execution time of thread?
    Any help will be highly appreciated.
    Irfan

    I suggest reposting in the Unix forum here:
    http://discussions.apple.com/forum.jspa?forumID=735

  • Difference between viewoption.process and sourceoption.process.

    hi,
    In the Technical deplyment document, it tell me that calling a workflow by using sourceoption.process.But i know that we call a worflow by viewoption.process.
    this was code in the document
    <Form>
    <Field name='sourceOptions.Process'>
    <Expansion>
    <s>My workflow process name</s>
    </Expansion>
    </Field>
    </Form>
    can any one tell me what is difference in both ?
    Thank you

    The common usage of process and thread is as mjacobsca says. A process is a program that is currently excecuting. Each process has at least one thread running within it. Threads are sometimes called leightweight processes, so I would say process is the more general word. To complicate matters there are different thread depending on who owns them, the OS (native thread or the JVM (green thread).
    http://developer.java.sun.com/developer/qow/archive/97/index.html

  • Implementing sockets and threads in a jframe gui program

    Hi, I am trying to find a solution to a problem I am having designing my instant messenger application.
    I am creating listening sockets and threads for each client logged into the system. i want to know if there is a way to listen to other clients request from the main gui and then if another client tries to establish a connection with me for example, a thread is created for that client and then my chat gui opens automatically has soon has the other client sends his or hers first text message to me.
    I am relatively new at socket programming has I am currently studying along this area. I know how to create threads and sockets but I am having trouble finding out a solution to my problem. Here is the code that I have done so far for the listening method from my main gui, and the thread class of what I have done so far.
    listening socket:
         private void listeningSocket()
                ServerSocket serverSocket = null;
                boolean listening = true;
                try
                    //listen in port 4444;
                    serverSocket = new ServerSocket(4444);
                catch(IOException x)
                    JOptionPane.showMessageDialog(null, "cannot listen to port 4444", null, JOptionPane.ERROR_MESSAGE);
                while(listening)
                    client_thread w;
                    try
                       w = new client_thread(serverSocket.accept(), jTextArea1);
                       Thread t = new Thread(w);
                       t.start();
                    catch(IOException x)
                         JOptionPane.showMessageDialog(null, "error, cannot start new thread", null, JOptionPane.ERROR_MESSAGE);
            }thread class:
    import java.io.*;
    import java.net.*;
    import javax.swing.*;
    import java.sql.*;
    import java.awt.event.*;
    * @author jonathan
    public class client_thread extends Thread
         //define new socket object
        private Socket client_user = null;
        private JTextArea textArea;
        public client_thread(Socket client_user, JTextArea textArea)
            this.client_user = client_user;
            this.textArea = textArea;
        public void run()
            BufferedReader in = null;
            PrintWriter out = null;
            String error = "error has occured, messege was not sent";
            String messege = null;
             try
                //create input and output streams
                in = new BufferedReader(new InputStreamReader (client_user.getInputStream()));
                out = new PrintWriter(client_user.getOutputStream(), true);
                while(true)
                   //read messege sent by user
                   messege = in.readLine();
                    //display messege in textfield
                   out.println(messege);
                   textArea.append(messege);
            catch (IOException e)
                //error messege
                JOptionPane.showMessageDialog(null, error, null, JOptionPane.ERROR_MESSAGE);
    }

    Seems like all you need to do is create a new dialog for each socket that is established. Your current design looks like it will attempt to use the same textarea for all the sockets.
    I would say in your thread class do the following:
    MyConversationDialog dialog = new MyConversationDialog();
    while(true)
                   //read messege sent by user
                   messege = in.readLine();
                    //display messege in textfield
                   out.println(messege);
                   dialog.setVisible (true);
                   dialog.addMessage (message);
                }

  • Image Processing and machine vision don't appear in Function Palette

    Hi,
    I have problem and I can't solve it
    Image Processing and machine vision don't appear in Function Palette, Although I set up NI imaq and NI Vision Acquisition Why??
    Anyone can help me?
    Solved!
    Go to Solution.

    If the image is already a Grayscale U8 image you would just have to save it to a bitmap file using the IMAQ WriteFile VI. If not, use the IMAQ Cast Image VI to convert it to a Grayscale U8 and then save it.
    Also, it would probably be better to create a new thread for questions like these.
    Cameron T
    Applications Engineer
    National Instruments

  • Spawned Processes and Memory

    Hi Guys,
    Does the JVM limit the amount of memory that a process uses when spawning using Runtime.exec()
    Basically we are trying to run the microsoft linker from Java (via Maven) and it keeps erroring with 'out of memory' this seems to happen when the process uses around 275MB of RAM.
    Are processes spawned by Java limited to the amount of memory allocated to the JVM via -Xmx ?
    Any insight on this matter would be appreciated.

    Check the source code of the function
    Java_java_lang_Win32Process_create
    in j2se\src\windows\native\java\lang\Win32Process_md.c (you can get such
    source code downloading the SCSL Source code.
    The relevant information is posted below.
        si.dwFlags = STARTF_USESTDHANDLES;
        processFlag = CREATE_NO_WINDOW;
        ret = CreateProcess(0,                /* executable name */
                            cmd,              /* command line */
                            0,                /* process security attribute */
                            0,                /* thread security attribute */
                            TRUE,             /* inherits system handles */
                            processFlag,      /* selected based on exe type */
                            envcmd,           /* environment block */
                            cwd,              /* change to the new current directory */
                            &si,              /* (in)  startup information */
                            &pi);             /* (out) process information */It simply does not adjust memory size, or do something mysterious. It simply creates the process, and redirects the input , output and error streams.
    You really must get more memory (or adjust the size of your Windows swap file)...
    You can try lowering (not raising) the -Xmx limit of your Java program to make more room for the "link" process.

  • List of issues and fixes for procure to pay process and order to cash process for a trading company

    Dear All Gurus
    Kindly tell me where I can find the list of all issues arising in procure to pay process
    and order to cash process and there fixes for a trading company in support project
    Thanking You
    Abdul Baseer

    Hi Abdul,
    There are no standard list to provide, you should identify the issue through regression testing and raise an SR or create a thread accordingly we can help you.
    Note:- Issues are vary to instance to instance, version to version, installation to upgrade etc..

Maybe you are looking for

  • Muse slideshows

    Is there a limit to the number of images one can put in a slide show using the Muse widget?

  • WSDL frm  Altova xml spy

    How do we generate WSDL files using Altova xml spy....Is there any tutorial/ beginners guide available for that...

  • How can we change the default inlist operator in condition pane to equalto

    When a user creates a condition in a WebIntelligence report, the                                             default operator is "In List". Can this default be changed to "Equal                                                       To" for all users?

  • Can't Sign In: Account Missing Information

    I just ordered an iPod Touch, and I'm trying to set up my iCloud account before it gets here. When signing into icloud.com, it says there is a server error. (my parents can sign into their account just fine) When trying to sign into the iCloud contro

  • Tiger installer on HD?

    Has anyone tried to clone Tiger installer DVD on a external HD and installed Tiger from there? If not I'll guess I need to try it myself. In some situations it would be nice to be able to install Tiger from HD (upgrade, busted DVD etc...)