JNI Application running in ms-dos but throws an exception in applet

Hi! I have a java application which calls a DLL using the JNI. This works perfect if I execute the java program from my command line (in ms-dos) But when I try to do it in an applet, it indeed runs and do everything ok, but at the end of the execution I get a EXECUTION_EXCEPTION.
This is how is working:
1.- jnidllmyclass, this is where I call the native method of my DLL
2.- intermediate DLL which writes to files to c:\temporal and it calls several functions from other DLL
3.- other DLL which writes more files (among other things)
4.- applet class with a call to jnidllmyclass
Now the DLL what does is to open a connection to a usb scanner, then send commands to it to scann somethings, save front and back images to c:\temporal (obviously, all of this is done in the user system, using certificates) and write other file and close the connection. This works! it write the images well and write everything... but after that the exception arises... I have doubt of what is it, because if it does all, what is causing the exception?
Thanks for your help!

Hi! Applet can access the DLL. The scanners works, but the C DLL throws an exception. Nevertheless, I've managed to see what was going on. When you click a JButton in a GUI, it enters only one to the actionlistener, but if this is done in an Applet, enters twice, so... the first time worked fine, but the second no because there was nothing to scann.
This theme is a bit creepy, if you want help just ask! I give snippets, not just advices... I hate those people, so fell free to ask.
Greetings!

Similar Messages

  • Application call to ODBC SQLSetEnvAttr function throw HY011 exception

    Hi All,
          I try to use odbc driver manager in my .Net Application.first My .Net runtime is 3.5, odbc function calls(unmanaged functions are  imported to .Net application by dllimport attribute)can work well.but when .Net runtime is upgraded
    to 4.0,SetEnvAttr function calls
    return SQL-ERROR and I call SQLGetDiagRec function  get this error information:Operation invalid at this time.sqlstate value is HY011.
    below is my code fragment:
    [DllImport("odbc32.dll")]
    extern static short SQLSetEnvAttr(
    IntPtr envHandle,
    ushort attribute,
    IntPtr attrValue,
    int stringLength);
    [DllImport("odbc32.dll")]
    extern static short SQLAllocHandle(
    ushort HandleType,
    int InputHandle,
    out IntPtr OutputHandle);
    try
    rc = SQLAllocHandle(SQL_HANDLE_ENV, 0, out sql_env_handle);
    if ((rc != SQL_SUCCESS) && (rc != SQL_SUCCESS_WITH_INFO))
    throw new Exception("SQLAllocHandle: failed to allocate SQL_HANDLE_ENV");
    rc = SQLSetEnvAttr(sql_env_handle, SQL_ATTR_ODBC_VERSION, (IntPtr)SQL_OV_ODBC3, 0);
    //if ((rc != SQL_SUCCESS) && (rc != SQL_SUCCESS_WITH_INFO))
    // throw new Exception("SQLSetEnvAttr: failed to set SQL_ATTR_ODBC_VERSION");
    if((rc == SQL_SUCCESS_WITH_INFO)||(rc == SQL_ERROR))
    short i=1;
    short rc2;
    StringBuilder sqlstate=new StringBuilder();
    int NativeErrorPtr=0;
    StringBuilder MessageText=new StringBuilder();
    short BufferLength=256;
    short TextLengthPtr=0;
    while ((rc2 = SQLGetDiagRec((short)SQL_HANDLE_ENV,sql_env_handle,i,sqlstate,
    ref NativeErrorPtr,MessageText,BufferLength,ref TextLengthPtr))!= SQL_NO_DATA)
    i++;
    my operation system is win7 64bit. Could someone help me? thanks

    I already fixed this problem.
    [DllImport("odbc32.dll")]
    extern static short SQLAllocHandle(
    long HandleType,
    int InputHandle,
    out IntPtr OutputHandle);
    I replace ushort datatype with long datatype.So it works well

  • WDJ application running on old blackberry but not on OS 6.0

    Dears,
    We have custom webdynpro applications ment to run on blackberry device and things are going fine. But in Blackberry OS 6.0 or similar latest devices the same application is not working fine.
    We have NW 7.0 SP13 . Pleaes help to resolve this issue
    Regards
    Sudhir

    not answered closing it

  • VI server application runs under debug mode but not other wise

    I have an application which uses VI server to call vi's on my targets hard drive. When I run this using the highlight execution( or debug ) this works OK, however when I run without this I get error 66, connection closed by peer. When I look at my target using a direct monitor connection I get various messages relating to memory errors. I have run virtually the same code calling a simpler application and this seems to work fine, however when I simply target the RT engine with the same code ( using the RT comms wizard construction) I don't get a problem. This should, I think, be using the same amount of memory. What is the best was of assessing the memory available against the memory required? Do anyone have a
    ny ideas as to why the VI should run with execution highlighted and not without. I have tried adding delays so simulate this but it doesn't seem to work.

    Check out this KnowledgeBase article. It describes how to enable a memory monitoring tool that might help solve your problem.

  • I had my screen sectioned with an application running permanently in it and have lost it, please can someone tell me how to get it to do that again? Thank you.

    Hello,
    At some point a while ago I somehow mistakenly must have clicked on something in error and suddenly my Google Analytics programme (which is shown in by bookmarks at the top of the screen) was displayed in a section of the browser window to the left - the browser screen was split into two sections, with the google analytics program running in the left section and the right section was my regular browser window where everything ran as normal.
    I have no idea how this happened, but love it and have come to really appreciate it. However I've just changed computers, operating systems and allsorts and now I've got everything back on track that window has sadly gone and I cannot find how to get it back. I've searched through every option I can find and cannot figure out how to do that again!
    Can anyone help please? :-)

    Hi jscher200,
    Thank you for your reply, sorry for the VERY late late response, but I have just figured out how to control this separate 'panel'. I find it really useful for monitoring Google Analytics in as it can just sit there running. It does have its limitations, as it's a limited size (you can't expand it to full screen view), so you can only ever see a vertical section of a website and need to scroll to look to the right or left, but I have the live view of people accessing my website running on there and if the numbers start racking up at any time, I can scroll to look and see what pages they are accessing, where they've been referred from, etc.
    To get it to work, you save a website address in the Bookmarks Toolbar and when you can see it sitting on the toolbar at the top of the screen with its little icon, right click on it then click 'properties', then tick the box 'Load this bookmark in the sidebar'. The next time you click on this bookmark to open the website, it will load in this sidebar, which looks like a separate 'window' but is immovable. You can only have one sidebar application running at a time, but can change it by right clicking on the bookmark you want to load in there and it will then change to that one next time you click on that bookmark.
    I hope this might be useful to others, as I asked for help with this on loads of forums and not one person knew that this existed - even really skilled techies!

  • Error in Application.Run(DisplayLoginForm) and Remote Authentication in SharePoint Online Using the Client Object Model

    Hi guys
    I Think that is a simple error, but I don’t have enough knowledge in .NET apps.
    I make an console app that use Remote Authentication in SharePoint Online Using the Client Object Model, that a I downloaded from MSDN.
    This App run ok.
    But when I like to make a Windows From App. This component send me an error in Application.Run(DisplayLoginForm)
    This err msg :
     An unhandled exception of type 'System.InvalidOperationException' occurred in System.Windows.Forms.dll
    Additional information: Starting a second message loop on a single thread is not a valid operation. Use Form.ShowDialog instead.
    Is there any way to use a form inside a windows form?
    Thank in advance
    Ramiro
    Ramiro B

    Hi,
    Based on the error message, please do as following:
    1. Check your code logic below:
    void btn_Click(object sender, System.EventArgs e)
    Thread t = new Thread(StartMyForm);
    t.TrySetApartmentState(ApartmentState.STA);
    t.Start();
    public static void StartMyForm()
    Application.Run(new MyForm(..));
    2.Try to add the following code line in your code.
    Application.Restart();
    If the issue still exists, please provide your requirement and code for a further research.
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Application runs slower on Solaris

    We have developed an Application in Java (Servlets, JSP & Core Java classes including thread).
    My Application runs fast on Windows, but its terribly slow on Solaris. When the application is run on Solaris the CPU usage is very less around 3 to 5 % only and there is no major io bound operation also. Please comment on this behaviour when am running the application on Solaris.
    For eg: A while loop in my program took around 16 msecs to execute in Windows machine, but the same while loop is taking 250 msecs to run in solaris.
    Note: The solaris machine is very powerful than the desktop windows machine.
    Thanks & Regards,
    Salin

    Which version of Solaris are you running and what threading library is currently in use? Did you use some profiling application to arrive at the benchmark results you obtained or some other means were used? Does the code within the while loop call any classes making use of Java threads and synchronization mechanisms?

  • Transport.send(Message) sends mail but throws exception

    Is it possible in any scenario that Transport.send(Message) method deliveres the message successfully, but throws an exception also?
    Any help is appreciated. Thanks.

    Yes, but only if you've configured it to do so.
    See the javadocs for the com.sun.mail.smtp package for the property
    you can set to cause it to do that.
    If you haven't set that property and you're seeing that behavior, please provide
    more detail, including especially the protocol trace.

  • JNDI: DirContext::list throws on exception when existing context is in LDAP

    I was able to import tutorial.ldif using LDAP Browser/Editor without incident:
    http://www-unix.mcs.anl.gov/~gawor/ldap/
    My LDAP now has the following tree:
    o=JNDITutorial
    ou=Groups
    5 cn entries
    ou=People
    10+ cn entries
    However, when calling DirContext::list("ou=People"), it throws the following exception message:
    javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object]; remaining name 'ou=People'
    Here is the code:
         final static String ldapServerName = "backbone.seamonkey";
        public static void main(String[] args) {
         // Set up the environment for creating the initial context
         Hashtable env = new Hashtable(11);
         env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
         env.put(Context.PROVIDER_URL, "ldap://" + ldapServerName +"/o=JNDITutorial");
         try {
             // Create initial context
             DirContext ctx = new InitialDirContext(env);
             // Return enum of people, but throws an exception...
             NamingEnumeration people = ctx.list("ou=People");

    I tried the same with a known LDAP service: OpenLDAP.org, and I get the same exception NameNotFoundException thrown with the following code:
         final static String m_ldapServerName = "OpenLDAP.org";
        public static void main(String[] args) {
         // Set up the environment for creating the initial context
         Hashtable<Object, Object> env = new Hashtable<Object, Object>();
         env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
         env.put(Context.PROVIDER_URL, "ldap://" + m_ldapServerName + ":389/");
         try {
             // Create initial context
             DirContext ctx = new InitialDirContext(env);
             // Return enum of people, but throws an exception...
             NamingEnumeration people = ctx.list("ou=People");

  • Cannot run the JNI application in debug mode in eclipse

    Hi ,
    I have created a C++/Java project in Eclipse on windows XP.
    I can run the app. but I cannot debug it. I get the following error.
    Failed to connect to remote VM. Connection refused.
    java.net.ConnectException: Connection refused: connect
    java.net.PlainSocketImpl.socketConnect(Native Method)
    java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
    java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
    java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
    java.net.Socket.connect(Socket.java:452)
    java.net.Socket.connect(Socket.java:402)
    java.net.Socket.<init>(Socket.java:309)
    java.net.Socket.<init>(Socket.java:124)
    org.eclipse.jdi.internal.connect.SocketTransportImpl.attach(SocketTransportImpl.java:47)
    org.eclipse.jdi.internal.connect.SocketAttachingConnectorImpl.attach(SocketAttachingConnectorImpl.java:103)
    org.eclipse.jdt.internal.launching.SocketAttachConnector.connect(SocketAttachConnector.java:131)
    org.eclipse.jdt.internal.launching.JavaRemoteApplicationLaunchConfigurationDelegate.launch(JavaRemoteApplicationLaunchConfigurationDelegate.java:75)
    org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:569)
    org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:788)
    org.eclipse.debug.internal.ui.DebugUIPlugin$6.run(DebugUIPlugin.java:955)
    org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
    I compiled my C program with :
         options[0].optionString = "-Xdebug";
         options[1].optionString = "-Xnoagent";
         options[2].optionString = "-Djava.compiler=NONE";
         options[3].optionString = "-Djava.class.path=.";
         options[4].optionString = "-Xrunjdwp:transport=dt_socket,address=8888,server=y,suspend=y";
    In the debug window in eclipse i have created a new config. under remote java application. I have set the connect tab = myproject.
    Connection type = Standard(socket attach) and connection properties: host = localhost , port=8888.
    Any help?

    It looks like you are doing basically the same thing as we are doing, and it seems to work for us. Do you see a message from the JVM that says:
    Listening for transport dt_socket at address: 8888
    The one strange thing that we are seeing is if we throw an exception in Java and clear it in C++ (using ExceptionClear) the subsequent entry into the eclipse debug session behaves very strange.
    Anyway, here is what we are doing:
    J2SE 5.0
    Eclipse Version: 3.1.0 Build id: I20050401-1645
    jvmOptions[0].optionString = "-Djava.compiler=NONE";
    jvmOptions[1].optionString = (char *)classPath.c_str();
    jvmOptions[2].optionString = "-Xdebug";
    jvmOptions[3].optionString = "-Xnoagent";
    jvmOptions[4].optionString = "-Xrunjdwp:transport=dt_socket,address=8888,server=y,suspend=n";
    jvmOptions[5].optionString = "-verbose:jni";
    memset(&vm_args, 0, sizeof(vm_args));
    vm_args.version = JNI_VERSION_1_4;
    vm_args.nOptions = JNI_ARG_SIZE;
    vm_args.options = jvmOptions;
    vm_args.ignoreUnrecognized = JNI_TRUE;
    The eclipse remote java application is the same as your:
    Connection type = Standard(socket attach)
    Connection properties: host = localhost , port=8888.

  • Why cannot run the JNI application(which create a JVM) in debug mode

    Hi all friend,
    I have a JNI app which create a JavaVM and I want to add the option( "-Xrunjdwp:transport=dt_socket,address=8888,server=y,suspend=y") to created JVM ,I could run release modle under VC++6.0,but when I run this jni application as Debug model under VC++6.0,it throw Exception:
    "Unhandled exception in invokeJVMD.exe(JVM.DLL): 0xC0000005:Access Violation".
    Code as following:
    invoke.c
    #include <stdio.h>
    #include <stdlib.h>
    #include <jni.h>
    #include "memory.h"
    #define PATH_SEPARATOR ';' /* define it to be ':' on Solaris */
    #define USER_CLASSPATH "." /* where Prog.class is */
    #define JVM_ARGS_SIZE 7
    main() {
         JNIEnv *env;
         JavaVM *jvm;
         jint res;
         jclass cls;
         jmethodID mid;
         jstring jstr;
         jclass stringClass;
         jobjectArray args;
         JavaVMInitArgs vm_args;
          JavaVMOption options[JVM_ARGS_SIZE];
          options[0].optionString = "-Djava.class.path= " USER_CLASSPATH;
          options[1].optionString = "-Xdebug";
          options[2].optionString = "-Xnoagent";
          options[3].optionString = "-Djava.compiler=NONE";
          options[4].optionString = "-Xrunjdwp:transport=dt_socket,address=8888,server=y,suspend=y";
          options[5].optionString = "-verbose:jni";
          options[6].optionString = "-Xcheck:jni";
         vm_args.version = JNI_VERSION_1_4;
         vm_args.options = options;
         vm_args.nOptions = JVM_ARGS_SIZE;
         vm_args.ignoreUnrecognized = JNI_TRUE;
         /* Create the Java VM */
         res = JNI_CreateJavaVM(&jvm, (void**)&env, &vm_args);
         if (res < 0) {
             fprintf(stderr, "Can't create Java VM\n");
             exit(1); /*exit(1);*/
         cls = (*env)->FindClass(env, "Prog");
         if (cls == NULL) {
             goto destroy;
         mid = (*env)->GetStaticMethodID(env, cls, "main",
                                         "([Ljava/lang/String;)V");
         if (mid == NULL) {
             goto destroy;
         jstr = (*env)->NewStringUTF(env, " from C!");
         if (jstr == NULL) {
             goto destroy;
         stringClass = (*env)->FindClass(env, "java/lang/String");
         args = (*env)->NewObjectArray(env, 1, stringClass, jstr);
         if (args == NULL) {
             goto destroy;
         (*env)->CallStaticVoidMethod(env, cls, mid, args);
    destroy:
         if ((*env)->ExceptionOccurred(env)) {
             (*env)->ExceptionDescribe(env);
         (*jvm)->DestroyJavaVM(jvm);
          exit(0);
    }Prog.java:
    public class Prog {
        public static void main(String[] args) {
             int i = 0;
             int j = 10;
             i += j;
             System.out.println("Hello World " + args[0]);
            new HelloWorld().displayHelloWorld();
    }Any help?Thanks

    Sounds like this old problem, and workaround:
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4335526
    -slj-

  • I didn't install Genieo because it looked weird but it says its running when I try to throw it away

    I didn't install Genieo because it looked weird but it says its running when I try to throw it away.  I'm nervous about running the ininstall

    Hello,
    One way to test is to Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, Test for problem in Safe Mode...
    PS. Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive
    Reboot, test again.
    If it only does it in Regular Boot, then it could be some hardware problem like Video card, (Quartz is turned off in Safe Mode), or Airport, or some USB or Firewire device, or 3rd party add-on, Check System Preferences>Accounts (Users & Groups in later OSX versions)>Login Items window to see if it or something relevant is listed.
    Check the System Preferences>Other Row, for 3rd party Pref Panes.
    Also look in these if they exist, some are invisible...
    /private/var/run/StartupItems
    /Library/StartupItems
    /System/Library/StartupItems
    /System/Library/LaunchDaemons
    /Library/LaunchDaemons
    Also see...
    https://discussions.apple.com/thread/4497906?start=45&tstart=0

  • Application running slow in ver 1.5, 1.6 but not in 1.4

    We have a application that was running very slow when we used any version sun java instead of MS java in IE6 SP2.
    I removed MS Java from IE and installed Sun java 1.4.2_16 and the applications starts in under 10sec's.
    But we had to test the other version of java as well, i then installed the other versions from 1.5 update 14 to 1.6 update 4 and the application takes about 30 to 40 sec to load the web page.
    I then looked at the development version of java 1.6 update 10 and version 7. In 1.6 update 10 the application would load but would not refresh the applets it would just hang. In version 7 the application would not start up at all.
    In all the versions i increased the memory parmeters from 128 to 256 and in version 1.6 i changed it to -Xmx300m as well but still the application was slow loading. Removed all the versions and reinstalled 1.4.2_14 and the application works fine and loads up under 10 sec.
    Does any one have any idea why this is happening.
    IE 6 sp2
    XP sp2 been used.

    You should try profiling the startup code.
    As a first go around, you might try getting a stack trace during the startup process and look for locks (see jstack).
    If your application is built on Swing, it's my understanding that the later versions of Java are more strict about use of the Event Dispatch Thread--pay particular attention to activity off the EDT locking the thread.

  • Application running too slow on sun T5440 but run normal on sun M3000

    Hi all,
    I have application running on sun server T5440 4x8x1.4 GHz, 64 GB RAM, application running very slow though load average too low. when I install my application on another server SUN M3000 (One CPU 1x8x2.5GHz, 8GB RAM), application run smoothly.
    Here is my server T5440 info:
    Code:
    bash-3.00# uname -a
    SunOS 5.10 Generic_142909-17 sun4v sparc SUNW,T5440
    Psrinfo -pv
    Code:
    bash-3.00# psrinfo -pv
    The physical processor has 64 virtual processors (0-63)
    UltraSPARC-T2+ (chipid 0, clock 1414 MHz)
    The physical processor has 64 virtual processors (64-127)
    UltraSPARC-T2+ (chipid 1, clock 1414 MHz)
    The physical processor has 64 virtual processors (128-191)
    UltraSPARC-T2+ (chipid 2, clock 1414 MHz)
    The physical processor has 64 virtual processors (192-255)
    UltraSPARC-T2+ (chipid 3, clock 1414 MHz)
    /etc/system
    Code:
    set semsys:seminfo_semopm=10000
    set semsys:seminfo_semmsl=10000
    set semsys:seminfo_semmni=1024
    set max_nprocs=50000
    set msgsys:msginfo_msgmnb=2097152
    set msgsys:msginfo_msgmni=2560
    set msgsys:msginfo_msgtql=2560
    set shmsys:shminfo_shmmax=1073741824
    set shmsys:shminfo_shmmni=1000
    set rlim_fd_cur=10000
    Ipcs
    Code:
    bash-3.00# ipcs -a
    IPC status from as of Wed Jun 13 12:31:01 ICT 2012
    T ID KEY MODE OWNER GROUP CREATOR CGROUP CBYTES QNUM QBYTES LSPID LRPID STIME RTIME CTIME
    Message Queues:
    q 62 0x1388 --rw-rw-rw- topx topx topx topx 0 0 2097152 0 0 no-entry no-entry 8:36:22
    q 61 0x1387 --rw-rw-rw- topx topx topx topx 0 0 2097152 0 0 no-entry no-entry 8:36:22
    q 60 0x1318 --rw-rw-rw- topx topx topx topx 0 0 2097152 0 0 no-entry no-entry 8:36:22
    q 59 0x12a9 --rw-rw-rw- topx topx topx topx 0 0 2097152 9069 9071 10:25:38 10:25:38 8:36:22
    q 58 0x100f --rw-rw-rw- topx topx topx topx 0 0 2097152 9069 9070 10:06:16 10:06:16 8:36:22
    q 57 0xfa0 -Rrw-rw-rw- topx topx topx topx 0 0 2097152 9071 9069 10:25:38 10:25:38 8:36:22
    q 56 0xf30 --rw-rw-rw- topx topx topx topx 0 0 2097152 0 0 no-entry no-entry 8:36:20
    q 55 0xc27 -Rrw-rw-rw- topx topx topx topx 0 0 2097152 0 0 no-entry no-entry 8:28:14
    q 54 0xbb8 -Rrw-rw-rw- topx topx topx topx 0 0 2097152 172 9066 10:47:08 10:47:08 8:28:14
    T ID KEY MODE OWNER GROUP CREATOR CGROUP NATTCH SEGSZ CPID LPID ATIME DTIME CTIME
    Shared Memory:
    T ID KEY MODE OWNER GROUP CREATOR CGROUP NSEMS OTIME CTIME
    Semaphores:
    s 104 0x9c4 --ra-ra-ra- topx topx topx topx 3 12:31:00 8:36:20
    s 103 0xa8c --ra-ra-ra- topx topx topx topx 1 8:36:20 8:36:20
    s 102 0xd48 --ra-ra-ra- topx topx topx topx 1 8:36:20 8:36:20
    s 101 0xce4 --ra-ra-ra- topx topx topx topx 1 8:36:20 8:36:20
    s 100 0x26de --ra-ra-ra- topx topx topx topx 8 10:19:34 8:28:14
    s 99 0xc1c --ra-ra-ra- topx topx topx topx 1 8:36:20 8:28:14
    s 98 0xbb8 --ra-ra-ra- topx topx topx topx 1 8:43:50 8:28:14
    s 97 0xaf0 --ra-ra-ra- topx topx topx topx 500 8:36:20 8:28:14
    s 96 0xa28 --ra-ra-ra- topx topx topx topx 500 8:36:20 8:28:14
    s 95 0x7ee --ra-ra-ra- topx topx topx topx 1 8:36:20 8:28:14
    s 94 0x7e4 --ra-ra-ra- topx topx topx topx 1001 8:36:20 8:28:14
    s 93 0x7da --ra-ra-ra- topx topx topx topx 220 8:36:20 8:28:14
    s 92 0x7d5 --ra-ra-ra- topx topx topx topx 200 12:05:15 8:28:14
    s 91 0x7d0 --ra-ra-ra- topx topx topx topx 200 8:56:42 8:28:14
    s 90 0xc80 --ra-ra-ra- topx topx topx topx 2 12:31:01 8:27:52 –a
    Prstat
    Code:
    PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP
    9202 topx 1460M 893M sleep 59 0 0:16:37 0.2% integrity_check/1
    12455 root 3880K 3600K cpu65 59 0 0:00:00 0.0% prstat/1
    9080 topx 142M 130M sleep 59 0 0:00:52 0.0% intf_resp_low/1
    9125 topx 102M 78M sleep 59 0 0:00:36 0.0% interface_vsc/1
    9121 topx 88M 80M sleep 59 0 0:00:32 0.0% interface_tcu/1
    9120 topx 89M 80M sleep 59 0 0:00:29 0.0% interface_rcm/1
    9124 topx 87M 78M sleep 59 0 0:00:29 0.0% baplie_merge_v2/1
    9122 topx 86M 78M sleep 59 0 0:00:28 0.0% interface_eih/1
    9115 topx 88M 77M sleep 59 0 0:00:33 0.0% intf_batch_even/1
    9114 topx 88M 77M sleep 59 0 0:00:39 0.0% intf_event/1
    9117 topx 87M 78M sleep 59 0 0:00:32 0.0% interface_bxy/1
    9118 topx 86M 78M sleep 59 0 0:00:29 0.0% interface_ppm/1
    NPROC USERNAME SWAP RSS MEMORY TIME CPU
    41 topx 334M 2237M 3.4% 0:30:17 0.3%
    43 root 186M 195M 0.3% 0:14:45 0.0%
    1 noaccess 152M 136M 0.2% 0:04:00 0.0%
    1 smmsp 3688K 11M 0.0% 0:00:04 0.0%
    1 lp 1208K 3880K 0.0% 0:00:00 0.0%
    6 daemon 7264K 9944K 0.0% 0:00:26 0.0%
    Total: 93 processes, 259 lwps, load averages: 0.40, 0.39, 0.39
    Prstat –mL
    Code:
    bash-3.00# prstat -mL
    PID USERNAME USR SYS TRP TFL DFL LCK SLP LAT VCX ICX SCL SIG PROCESS/LWPID
    9202 topx 0.9 0.0 0.0 0.0 0.0 0.0 99 0.0 2 0 5 0 integrity_ch/1
    9080 topx 0.4 0.0 0.0 0.0 0.0 0.0 100 0.0 5 0 20 0 intf_resp_lo/1
    9114 topx 0.2 0.0 0.0 0.0 0.0 0.0 100 0.0 13 0 66 0 intf_event/1
    17282 root 0.1 0.2 0.0 0.0 0.0 0.0 100 0.0 20 1 324 0 prstat/1
    9117 topx 0.2 0.0 0.0 0.0 0.0 0.0 100 0.0 10 1 70 0 interface_bx/1
    9118 topx 0.2 0.0 0.0 0.0 0.0 0.0 100 0.0 10 1 70 0 interface_pp/1
    9115 topx 0.2 0.0 0.0 0.0 0.0 0.0 100 0.0 15 0 80 0 intf_batch_e/1
    9121 topx 0.2 0.0 0.0 0.0 0.0 0.0 100 0.0 10 0 70 0 interface_tc/1
    9125 topx 0.2 0.0 0.0 0.0 0.0 0.0 100 0.0 10 0 70 0 interface_vs/1
    9120 topx 0.2 0.0 0.0 0.0 0.0 0.0 100 0.0 10 0 70 0 interface_rc/1
    9123 topx 0.2 0.0 0.0 0.0 0.0 0.0 100 0.0 10 0 70 0 interface_vs/1
    9124 topx 0.2 0.0 0.0 0.0 0.0 0.0 100 0.0 10 1 70 0 baplie_merge/1
    9122 topx 0.1 0.0 0.0 0.0 0.0 0.0 100 0.0 8 0 56 0 interface_ei/1
    9119 topx 0.1 0.0 0.0 0.0 0.0 0.0 100 0.0 8 0 56 0 interface_cp/1
    9204 topx 0.1 0.0 0.0 0.0 0.0 0.0 100 0.0 15 1 1K 0 sys_check/1
    259 root 0.0 0.0 0.0 0.0 0.0 0.0 100 0.0 13 2 98 7 in.mpathd/1
    1 root 0.0 0.0 0.0 0.0 0.0 0.0 100 0.0 3 0 99 3 init/1
    1337 noaccess 0.0 0.0 0.0 0.0 0.0 0.0 100 0.0 100 0 100 0 java/14
    140 root 0.0 0.0 0.0 0.0 0.0 0.0 100 0.0 19 0 114 0 nscd/851
    Total: 90 processes, 256 lwps, load averages: 0.40, 0.40, 0.39
    Vmstat
    Code:
    bash-3.00# vmstat 1 10
    kthr memory page disk faults cpu
    r b w swap free re mf pi po fr de sr m0 m1 m2 m3 in sy cs us sy id
    0 0 0 87720712 60562856 173 645 199 44 44 0 0 0 0 0 0 886 2819 525 0 1 99
    1 0 0 87563976 59743040 73 327 0 15 15 0 0 0 0 0 0 747 2831 439 0 1 99
    0 0 0 87563656 59742808 61 306 0 15 15 0 0 0 0 0 0 770 2684 427 0 1 99
    1 0 0 87563656 59742824 0 0 0 0 0 0 0 0 0 0 0 886 1302 525 0 1 99
    1 0 0 87563656 59742816 62 305 0 15 15 0 0 0 0 0 0 722 2652 420 3 1 96
    1 0 0 87563656 59742840 554 2777 0 139 139 0 0 0 0 0 0 959 9736 749 1 1 97
    0 0 0 87563456 59742672 1155 5735 0 292 292 0 0 0 0 0 0 1113 17489 1145 1 3 96
    1 0 0 87563656 59742840 0 0 0 0 0 0 0 0 0 0 0 845 1613 654 0 1 99
    0 0 0 87563656 59742856 62 305 0 15 15 0 0 0 0 0 0 900 2647 526 0 1 99
    0 0 0 87563656 59742856 62 304 0 15 15 0 0 0 0 0 0 683 2661 396 0 1 99
    Mpstat
    Code:
    CPU minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt idl
    0 0 0 130 261 1 121 0 13 1 0 0 0 1 0 99
    1 0 0 35 133 2 143 0 9 6 0 64 0 0 0 100
    2 0 0 5 20 2 17 0 3 0 0 29 1 0 0 99
    3 0 0 0 3 0 2 0 0 0 0 0 0 0 0 100
    4 0 0 3 14 0 15 0 2 2 0 13 0 0 0 100
    73 0 0 474330 77 3 0 7 0 2 0 2596 67 33 0 0
    73 0 0 487701 37 0 0 7 0 8 0 2670 66 34 0 0
    73 0 0 476377 14 0 0 8 0 1 0 2610 66 34 0 0
    78 0 0 473950 11 1 0 7 0 13 0 2593 67 33 0 0
    78 0 0 480562 9 0 0 7 0 4 0 2630 66 34 0 0
    79 0 0 320989 14 1 0 8 0 0 0 1766 77 23 0 0
    79 0 0 479148 9 0 0 7 0 8 0 2622 66 34 0 0
    79 0 0 479426 13 0 0 7 0 2 0 2622 67 33 0 0
    79 0 0 488949 9 0 0 8 0 13 0 2678 66 34 0 0
    64 0 0 482229 15 2 0 8 0 7 0 2638 65 35 0 0
    77 0 0 475571 14 1 0 7 0 8 0 2602 67 33 0 0
    69 0 0 467795 22 1 0 7 0 40 0 2563 66 34 0 0
    69 0 0 318623 9 1 0 7 0 8 0 1751 77 23 0 0
    66 0 0 465179 92 1 2 8 0 62 0 2545 66 34 0 0
    When my application running, some of CPU have IDLE state = 0 and hold the CPU while another CPU have IDLE state 100. I think this is my bottleneck but I cannot find any solution for solve that.
    Netstat
    Code:
    bash-3.00# netstat -i
    Name Mtu Net/Dest Address Ipkts Ierrs Opkts Oerrs Collis Queue
    lo0 8232 loopback localhost 244022 0 244022 0 0 0
    nxge0 1500 TOPX-01-DUMMY1 TOPX-01-DUMMY1 3594863 0 5801650 0 0 0
    nxge1 1500 TOPX-01-DUMMY2 TOPX-01-DUMMY2 160954 0 151230 0 0 0
    iostat
    Code:
    bash-3.00# iostat -xn
    extended device statistics
    r/s w/s kr/s kw/s wait actv wsvc_t asvc_t %w %b device
    0.1 0.1 1.5 30.8 0.0 0.0 1.8 9.0 0 0 md/d0
    0.0 0.1 0.8 30.8 0.0 0.0 0.0 9.9 0 0 md/d1
    0.0 0.1 0.8 30.8 0.0 0.0 0.0 9.8 0 0 md/d2
    0.0 0.0 0.0 0.0 0.0 0.0 0.0 15.2 0 0 md/d3
    0.0 0.0 0.0 0.0 0.0 0.0 0.0 10.9 0 0 md/d4
    0.0 0.0 0.0 0.0 0.0 0.0 0.0 19.4 0 0 md/d5
    0.0 0.0 2.2 1.5 0.0 0.0 0.8 7.4 0 0 md/d6
    0.0 0.0 1.1 0.7 0.0 0.0 0.0 8.5 0 0 md/d7
    0.0 0.0 1.1 0.8 0.0 0.0 0.0 8.2 0 0 md/d8
    0.0 0.1 0.4 0.6 0.0 0.0 7.6 10.0 0 0 md/d9
    0.0 0.1 0.2 0.6 0.0 0.0 0.0 9.1 0 0 md/d10
    0.0 0.1 0.2 0.6 0.0 0.0 0.0 7.8 0 0 md/d11
    0.0 0.0 0.0 0.0 0.0 0.0 0.1 10.4 0 0 md/d12
    0.0 0.0 0.0 0.0 0.0 0.0 0.0 8.5 0 0 md/d13
    0.0 0.0 0.0 0.0 0.0 0.0 0.0 8.4 0 0 md/d14
    0.1 0.5 2.1 32.3 0.0 0.0 0.0 9.9 0 0 c0t0d0
    0.1 0.5 2.1 32.3 0.0 0.0 0.0 9.8 0 0 c0t1d0
    0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 c1t0d0
    0.9 0.9 125.3 123.1 0.0 0.1 0.0 34.2 0 2 c4t600144F0CC00C29A00004D1E456F0003d0
    0.3 0.7 20.7 53.9 0.0 0.0 0.2 8.2 0 0 c4t600144F0CC00C29A00004D1E43880001d0
    0.1 0.2 50.7 111.5 0.0 0.0 0.0 59.1 0 1 c4t600144F0CC00C29A00004D1E453E0002d0
    Please help me find the bottleneck of my T5440 server?Thanks so much for all your help.

    Moderator Comment and Action:
    @ O.P.,
    You cross-posted this to at least two other forum web sites:
    http://www.linuxquestions.org/questions/solaris-opensolaris-20/application-running-too-slow-on-sun-sparc-t5440-but-run-normal-on-sun-m3000-4175411155/
    http://www.unix.com/solaris/189945-application-running-too-slow-sun-sparc-t5440-but-run-normal-sun-m3000.html
    ... and didn't think that was important enough to simply mention the fact.
    Timestamps suggest that OTN was the last place you posted to.
    Poor forum etiquette.
    Why would anyone spend the time to try to give help that you have already received elsewhere? That's a waste of their time.
    (Yes, you already received the suggestion to use Dtrace in one of those other sites.)
    This thread is locked as irrelevant.

  • Application Runs Under Windows 8.1 But Not Under Windows XP (I Know XP Is Deprecated)

    The problem is with the obtuse error message put out by Windows's program loader. It reads, in part, "..is not a valid Win32 application." The application runs everywhere except on Windows XP. Looking for root cause of the problem. It's a very
    simple application. Only a few lines of code. 
    C:\Packaged-Software\32-BIT\Reboot.exe is not a valid Win32 application.
    Proposed nature of the problem:
    1. The file was downloaded from a website but the download was incomplete.
    2. The full file system filename path contains bad characters such blank space.
    3. Visual Studio constructed an application that won't run anywhere much less on XP.
    4. The supporting libraries are not properly installed (e.g. .NET Framework4, and VCREDIST).
    Retorts:
    1. The file wasn't downloaded from a website and is intact.
    2. The filename path doesn't contain any spaces.
    3. The application runs under Windows 8.1.  Also on Windows 7.
    4. The supporting libraries are properly installed.
    So, what's the problem?  One surely will not discover the root cause from "not a valid application."
    Body must be 4 to 60000 characters long.  I had put the code here.  It isn't 60000 character long.  But it validated as if there are more than 60000 characters.  Sorry for the incomplete submission due to website construction error.
    MARK D ROCKMAN

    Hi F7H2fw,
    How did you develop the application ?
    Here is a similar symptom and this may explain the issue somehow:
    Setup.exe is not a valid Win32 application
    http://blogs.msdn.com/b/vsnetsetup/archive/2012/10/16/setup-exe-is-not-a-valid-win32-application.aspx
    I suspect there is a compatibility issue here .
    Considering this is more likely a developing issue .It is recommended to ask for help from our MSDN Forum .They are more familiar with the developing issue .If it is possible ,please attach the code in that thread .Thanks for your understanding and cooperation.
    MSDN Forum
    https://social.msdn.microsoft.com/Forums/en-US/home
    Best regards
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

Maybe you are looking for

  • I give up - but trying this as a last resort with ...

    To whom it may concern,  I would be grateful if you can look into the following issue. Please don’t stop reading at any point, it does get interesting, it’s not boring. Broadband issue – Chain of events Telephone  – Mr. Alastair Paterson, I first ran

  • Win7 x64 Installation on late 2007 MBP+Mountain Lion

    Dear All, As a long time mac and bootcamp user, I've never expected to face this problem but I've been trying to do this for 3 days. I'm having trouble installing bootcamp (win7 x64 ultimate) into my late 2007 MBP (2.4GHZ core 2 duo) Pretty much use

  • 0ORGUNIt time dependent hierarchy not showing all valid nodes in BO , but in BW its correctly shown

    Hi All, We have 0ORGUNIT hierarchy shown in one of the Webi reports. 0ORGUNIT is time dependent hierarchy. In BW report we can see below nodes for hierarchy Hierarchy                     Valid From         Valid To Z05 Root Company        01.07.2013 

  • Imp 0009 Error

    I am getting and Oracle while exporting as below, please assist. I use a Solaris 8 box, with Oracle 9i running on it IMP-00017: following statement failed with ORACLE error 901: "CREATE FORMAT92TRIG " IMP-00003: ORACLE error 901 encountered ORA-00901

  • Problem Export to Excel it takes long time and Takes more space.

    Hello All, when we export to Excel in portal(reports), it takes long time and it takes more space. how to overcome this problem please any one knows provide the proper solution for this issues Regards, Ch.