Multicore on a Java application on solaris 8, JVM 1.4.2_12 64bits ?

Hello,
We have a solaris 8 server with eight Ultrasparc-III+ processors (8 cores/threads), so normally 64 logical cpu's.
We have a java application multithreaded ( actually NLWP is reporting 46 threads ).
What Solaris 8 command could I use to see if the JVM is using the cores of my 8 processors ?
I tried to use prstat -L -p <pid> but I only see at maximum 6 different cpuname in the state column. Other threads are in the sleep state, stop state, others in the run state.
For my understanding run state tell that the thread is waitting for cpu time (Runnable: process in on run queue. ).
But why don't I see more than a thread running on the same cpu, it's like only 8 threads can be ran at the same time, it's like the cores were not used ?
Thanks for your advises,
Best regards,
Francois

Interdit wrote:
But why don't I see more than a thread running on the same cpu, it's like only 8 threads can be ran at the same time, it's like the cores were not used ?What is the real question?
The OS controls thread scheduling for threads that need to do actual work.
If your threads are not doing actual work then they won't be doing anything. And you control the work with your code, neither the VM nor the OS controls that.

Similar Messages

  • Regarding java application in solaris server

    Hi,
    I did some modifications in a java application located in solaris server by doing some validations in a java file and put the compiled class file back in to the solaris server.If i need to see the modifications which i did in the java file, do i need to restart the application server ?If yes , please tell me Why should i do it ?Also Please tell me the procedure how to do it as well?

    What about hosting a Solaris server and Running Windows server inside it using virtualization?
    Edited by: Abh_kol on Jun 11, 2009 9:30 PM

  • Java application getting killed automatically in Solaris

    Hi to all,
    I have developed a Java application for Solaris 10.
    But it is getting killed after some time.
    And at the terminal, I got message as Killed.
    I am new to Solaris.
    Can anybody help me?

    Nijai.Ashish wrote:
    Hi to all,
    I have developed a Java application for Solaris 10.
    But it is getting killed after some time.
    And at the terminal, I got message as Killed.
    I am new to Solaris.
    Can anybody help me?Are you hitting a resource limitation for your user account (e.g. only allotted a certain amount of CPU time)?

  • How to check actual allocated and used memory for java process in solaris?

    Hi,
    I'm testing performance for java application on solaris 10. And I would like to know how to measure actual memory allocated and used for java process.
    I'm setting -Xms512m -Xmx512m for my java process and I use prstat command to monitor it's memory. But I found that when I run prstat to check, in SIZE column is more than I setting (found 644).
    So I'm don't know the actual memory that java process used. (In this case,is it mean the process use memory (644) more than setting (512)?)
    Thank you.

    With Xms/Xmx you specify the Java heap size. On top of that comes the permanent generation (default max size 64m) and the C part of the process (the JVM itself with all its libraries and data).
    With "ps -e -o pid,vsz,rss,args" you get the virtual and set resident size of your processes.
    Nick.

  • Would the java applications be affected if change verison of Java 2 SDK

    This would be a very urgent information for me. Thanks a lot if you could help!!! :
    If the source codes I want to reuse is previously developed and tested with Java 2 SDK, Standard Edition (1.2.1_04) Production Release for Solaris, could I directly reuse them with Java 2 SDK, Standard Edition 1.3.1 for Windows? If not, what could I do to make the old Java application with Solaris to be able to run with Windows?

    If you application is pure Java (e.g. not running external programs or using JNI), then it should run w/o changes regardless of the platform. Of course, platform specific bugs may affect reality.

  • How to access MS ACCESS database from Solaris running Java application

    Hello I have a reqmt
    My Java application is running on Weblogic server on Solaris 2.7 and now I want to connect to MS Access database running on Win NT.
    How do I do that??
    Any help is appreciated
    Thanks
    Suresh

    You have to use a proxy server and client.
    You can search for commercial solutions via the sun jdbc site or use RmiJdbc at http://www.objectweb.org/

  • Sun Java Application Server 8.1 Upgrade Solaris 9 to Solaris 10

    I have Sun Java Application Server 8.1 (version 8.1_02 (build b06-fcs) ) and HA which are currently installed on Solaris 9 box (Sparc).
    Now, I plan to upgrade Solaris 9 to Solaris 10. What should I need to do before and after migration?
    Thanks.

    Before I start, disclaimer -- I have no knowledge of Hibernate and the following comments are based on the stack trace you have included.
    I think your permissions might be set all right but you might have an error in the hibernate query. It looks like hibernate uses antlr to parse the queries. While parsing the query, antlr is encountering an exceptional condition and is trying to exit the VM (by calling System.exit()). Obviously, the hibernate code does not have that permission and therefore the exception is logged.
    My guess is if you fix the query such that hibernate/antlr can parse it, you will not run into this error.
    Hope this helps,

  • SMC 4: Java Application Classes on Solaris 10 system

    Dear all,
    after installing SMC 4.0 without any errors I try to start the Console on the
    Solaris 10 platform by running "es-start -c &".
    After put in the Login Information SMC shows this message:
    An error occurred loading Java application classes.
    Verify installation of the Server components.
    Any idea what's wrong here?
    THX, Rainer

    @bobby
    =======
    1. Could not start the Web interface: Connection was refused when attempting to contact hostname:8080
    2. The /var/opt/SUNWsymon/install/setup_hostname.. file says:
    Could not start Java server
    Could not start Grouping service
    3. I used then "es-stop -A followed by "es-start -A" and checked via "svcs -a" the services:
    online 16:01:33 svc:/system/webconsole:console
    online 16:16:32 svc:/application/management/sunmcwebserver:default
    online 16:16:43 svc:/application/management/sunmcdatabase:default
    online 16:16:59 svc:/application/management/sunmctrap:default
    online 16:17:01 svc:/application/management/sunmccfgserver:default
    online 16:17:03 svc:/application/management/sunmcevent:default
    online 16:17:09 svc:/application/management/sunmcagent:default
    online 16:17:13 svc:/application/management/sunmctopology:default
    online 16:17:52 svc:/application/management/sunmcmetadata:default
    online* 16:18:15 svc:/application/management/sunmcjavaserver:default
    Nevertheless no chance to login.
    Rainer

  • Thai font support on solaris 2.6 sun os 5.6 sparc for java application

    how to install new fonts on solaris 2.6 sparc sun os 5.6. what are the necessary changes we have to make inorder to use new fonts in a java application. the requirement is to install thai language fonts that will be used by a java application to print online/batch job using text/postscript documents. advise on how to do it. kindly mail me at <[email protected]>
    thanks in advanse

    It is recommended for you to upgrade the JDK version to the J2SE 1.2.x versions which provides better support for the Thai fonts.
    You can download the localised version of Thai JDK 1.2.x for Solaris from :
    http://www.sun.com.sg/developers/thailand/index.html

  • Want to shutdown solaris 10 using java application

    Greetings all!
    I have been unsuccessful at creating my application to shut down a Solaris 10 server with a java application. I am hoping someone might be able to point me in a good direction here.
    I want to log on as a regular user and run a java application that monitors remote information (UPS battery voltage) and will gracefully shutdown the server if there is a problem. If I run my application as root all is well, except that I am running as root :)
    I can write code to access the shell:
    Process proc = Runtime.getRuntime().exec("ls");
    BufferedReader Input = new BufferedReader(new InputStreamReader(proc.getInputStream()));
    while ((s = Input.readLine()) != null) {out.println(s);}
    But I can't do a "su"?
    I've tried multiple examples out there of code that allows shell communication, and good examples of using Runtime.getRuntime()
    I think the conclusion is that you can't issue a su command via java application.
    I've also tried to telnet from a console to localhost and log in as root - no joy there either.
    Would someone have information that might point me in the right direction to solve this problem? Even better, if there is a sample snippet to go along with any help.
    Thank You very much!
    Ray

    Wow,
    Thank you for the very detailed response! I read the referenced web page last night, I'll read it again today too. RBAC sounds like a pretty complicated administrative tool. Coming from the Win32 domain, most of this security stuff is sadly uncharted territory for me (except for my mac).
    Let me see if I understand your method:
    Create a role, javarole, this role needs Primary Administrator priviliges (in order to invoke "shutdown -y -i5 -g0") only available to root
    Create a powerdown profile, essentially a script:
    this line creates the file:
    # echo "powerdown:::profile to powerdown server:help=powerdown.html" >> /etc/security/prof_attr
    I think this is the actual added script: (instead of the shutdown command just use init 5)
    # chmod 755 /usr/sbin/powerdown
    # cat > /usr/sbin/powerdown <<EOF
    #!/bin/sh
    /usr/sbin/init 5
    EOF
    This line is a bit confusing to me, is it also part of the script?
    # echo "powerdown:suser:cmd:::/usr/sbin/powerdown:uid=0" >> /etc/security/exec_attr
    I see the uid=0 (root)
    It seems obvious to me that I log in a root to create this script, which is the reason it has permission to shutdown...right?
    Also, I tried the su command using runTime.exec("su poweroff"); // a user I created to try poweroff scripts
    It seems that su is generally not available, I will create the role and try to telnet to it.
    What about creating a generic user script that includes the javarole name and password, and then run the script "/usr/sbin/powerdown"
    Yes, it leaves a role password exposed, however it is a very limited role, that is not accessible by a user login, but the turn off script is available to every user?
    Regards,
    Ray

  • Regarding Sun Java System Application Server Issue with JVM

    Regarding Sun Java System Application Server Issue with JVM
    Hi
    I have installed SJSAS9.1 on solaris system. I m trying to deploy war file which i compiled in windows enviorment by jdk1.5.0_05. Every time i got the following error :
    type Exception report
    message
    descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: PWC6033: Unable to compile class for JSP
    PWC6199: Generated servlet error:
    [javac] javac: invalid target release: 1.5
    [javac] Usage: javac
    [javac] where possible options include:
    [javac] -g Generate all debugging info
    [javac] -g:none Generate no debugging info
    [javac] -g:{lines,vars,source} Generate only some debugging info
    [javac] -nowarn Generate no warnings
    [javac] -verbose Output messages about what the compiler is doing
    [javac] -deprecation Output source locations where deprecated APIs are used
    [javac] -classpath Specify where to find user class files
    [javac] -sourcepath Specify where to find input source files
    [javac] -bootclasspath Override location of bootstrap class files
    [javac] -extdirs Override location of installed extensions
    [javac] -d Specify where to place generated class files
    [javac] -encoding Specify character encoding used by source files
    [javac] -source Provide source compatibility with specified release
    [javac] -target Generate class files for specific VM version
    [javac] -help Print a synopsis of standard options
    note The full stack traces of the exception and its root causes are available in the Sun Java System Application Server 9.1 logs.
    I have cheked jvm version on both system the only difference is :
    Solaris points to jdk 1.5.0_09
    Windows point to jdk1.5.0_05
    Even i tried to run blank jsp also but again i got the same error.
    Can any help me to sort out the problem or give me any idea so i can do something by my own.
    Thanks in Advance
    Gagan

    Do you have ANT installed and available?
    Thanks,
    Kedar

  • Control C picked up by background java application

    On Unix platform, the super user starts a stand alone Java application using "nohup java ... &" and run this command in the background.
    Reuse the same Unix session, vi command or "tail -f" any file, and stop the vi or tail with control-C. However control-C is picked up not just by the vi or tail, but also by the java application. This causes the background java application to stop and exit.
    I can reproduce this consistently. JDK version hotspot 1.3.1_01. Solaris 8 SPARC.
    Thanks,
    Michelle

    nohup makes ingoring the signal SIGHUP ("hangup").
    Crtl-C however raises a SIGINT.So...
    1. You open a console window.
    2. You start a nohup java app
    3. You run tail on the log (same window.)
    4. You do control-C
    It terminates both the tail and the java app?

  • Viewing reports generated by BOXI in local Java application?

    Hi,
    I am developing a Java client that will act as a front-end to a BOXI R2 server and am having some problems finding a suitable way to display the generated reports in an integrated manner.
    I have been using the Web Services component to interact with the server as this seems like the easiest (only) way to run reports on demand, including setting parameters. The ReportViewerBean java applet seems like the only tool available to integrate in a client java application but I have some problems with it. The only way I have been able to get it to display a report is by getting an IReportSource from the page server. It also doesn't let me set parameters programatically and so what my app has to do at the moment is set parameters and retrieve a view using the web service, put the retrieved view back on the server in a temporary location and then retrieve the temporary view on the server using the IReportSourceFactory and feed that to the ReportViewerBean.
    This solution is no good and I need some help getting this to work.
    I have used an ActiveX CR viewer component in a separate project written in VB6 which allowed me to set parameters, data sources, ect. and run the report. It was very flexible, but unfortunately tied to windows. Is there any similar component available in java that isn't as crippled as the ReportViewerBean and allows me to just view the report I retrieved from the server?
    Thanks,
    Elliot.

    The Crystal Report Viewer looks good, but it seem that it's only available for Windows and Mac platforms. The reason why I am using Java is because the company I am working for has clients using both Windows and Solaris workstations.
    The reporting component I am investigating needs to be integrated with our current software solution.
    There are a few requirements that restrict this to an integrated solution:
    We will be managing cascading and custom dynamic prompts and feeding formatted strings from that to the report parameters
    Solution has to be cross platform, including Unix platforms
    Interface has to be restricted so that viewing, printing, exporting can be controlled and audited by us.
    An interface that I can catch hyperlink events from to trigger extra functionality in the parent program.
    Thanks for the suggestion, but are there any other thick client java options for viewing a generated report?

  • Sun Java Application Server - Domain and Node agent stop automatically

    Hi,
    We have installed Sun Java Application server 8.1 in a local zone on Solaris 10. The installation was successful.
    A default domain (domain1) was created. We have deployed a sample application too.
    The problem is that the domain and node-agent stop automatically. And need to be restarted from asadmin start-domain command.
    Not sure why this problem is occurring. One solution given in Sun Java System AS 8.1 EE Troubleshooting Guide was to add these 2 lines in the /etc/inittab file to restart the domain and node-agent whenever the system re-boots.
    das:3:respawn:/opt/SUNWappserver/bin/asadmin start-domain user admin passwordfile /opt/SUNWappserver/password.txt domain1
    das:3:respawn:/opt/SUNWappserver/bin/asadmin start-node-agent user admin passwordfile /opt/SUNWappserver/password.txt node-agent-name
    Pls help me if I can change this inittab file from the local zone and if changing this file has any implications on the other zones on Solaris 10.
    Else is there any other way to resolve this problem?
    Any help would be highly appreciated.
    Thankyou.

    One thing not clear from the post was,
    * when it is going down automatically.
    * Are you facing the same problem even after starting through the asadmin
    * If so, Post the server.log from "domains/logs" during the starup.
    If you want to bring it up with system reboot, You need to have a startup script for that in init.d and have the links to rc2/3.d.

  • How to check java instance in solaris

    Dear All,
    I am running one java client application in solaris machine.
    Now my query is that if my application is already running ,how can i check that instance that whether that application is already running on machine or now so that i can restrict the operator to run multiple java application.
    Waiting for your reply
    Gaurav

    Open a ServerSocket with a fixed port number.

Maybe you are looking for

  • How do I get iTunes to play more than one song at a time on my PC?

    I have selected all in a playlist, then click the play button. It plays only the first song in the playlist. How do I get it to play all of those selected?

  • How To Customise Fiscal Year Variant

    Dear SAP Gurus, I have attempted to create a new FI Posting Period where the first day of the period is on the 16th of the month while the last day of the period is on the 15th of the next month. For example, my first day of the 1st period is on 16th

  • Dynamic LOV?

    Worksheet 1 uses a parameter for "Plant" to produce a report of all of the engineers for the selected Plant(s). We would like to use the list of engineers from worksheet 1 as the LOV for an "Engineer" parameter in worksheet 2 in order to produce a re

  • Colour changes on export

    I have graded all my footage in muticam angle viewer, and it previews fine in the timeline. When I export I get occasional angles which are the original ungraded colour, for no reason. I have tried deleting all the render files, removing all colour e

  • CF won't start with JDK 1.7

    Now that CF is certifified for JDK 1.7, I installed the latest update from Adobe and installed JDK 1.7.  However, ColdFusion 9.01 with Hotfix 3 on Windows 2008 will not start. This is the error in couldfusion-out.log Error loading: C:\Program Files\J