Auditting Java Process under Unix
Is there a way to see which java processes are running
in Unix?
ps -f does not work because the arguments passed
to java are too long and get truncated
Hi,
Try this command:
# top | grep java
"top" utility you can download it from http://www.sunfreeware.com for appropriate solaris versions.
Revert back.
Thanks,
Senthilkumar
Similar Messages
-
I have execute an example of RMI on 2 stations client/server
under the same one systeme(Windows)mais when I have to try to test it
under Unix, I do not have arrive
what is it necessary for me like configuration?well: how far have you gone or tested the app? where are you getting stuck? i'm running rmi on linux and i may be able to help out, but you need to give me more details.
-
Weblogic java process slowly hogging memory
My unix 'top' utility tells me that my Weblogic java process is slowly
hogging memory, over a period of hours under heavy load, until the machine
finally starts swapping and performance goes into the toilet.
I got a copy of jprobe, which I had hoped would show me that I have memory
leaks, but it said everything was fine, I could see the little graph of heap
memory getting sent back down to 10 Meg every minute or so. Then I bring up
'top' with no jprobe, and I watch "SIZE" grow to 250 Meg and I run out of
virtual memory. Anybody know what is up?
System info: Weblogic Server 5.1, sp5, Solaris 2.7, JDK 1.2.2_07.
Thanks in Advance
Greg250M for WLS is not very much. How much physical memory is on
the machine? What do you have your heap size set to?
Use the command /usr/proc/bin/pmap to dump out the memory
segments of the JVM. You will find one of the segments labeled
'heap' this is not the Java Heap, this is the C heap. Does it
grow? If it does, do you have native code (type 2 db drivers)or
any other native code? The JVM also uses the C heap. Compiling
JSPs seems to use a lot of memory. JSPs compiled with SP9 will
use less C heap than pre-SP9.
There will be another 'anon' segement that corresponds to the
size of the max Java Heap as shown by the weblogic console.
The 'Total' should correspond to the 'size' you see in top.
Mike
"Greg Lems" <[email protected]> wrote:
My unix 'top' utility tells me that my Weblogic java process is slowly
hogging memory, over a period of hours under heavy load, until the machine
finally starts swapping and performance goes into the toilet.
I got a copy of jprobe, which I had hoped would show me that I have memory
leaks, but it said everything was fine, I could see the little graph
of heap
memory getting sent back down to 10 Meg every minute or so. Then I bring
up
'top' with no jprobe, and I watch "SIZE" grow to 250 Meg and I run
out of
virtual memory. Anybody know what is up?
System info: Weblogic Server 5.1, sp5, Solaris 2.7, JDK 1.2.2_07.
Thanks in Advance
Greg -
Java running under linux with crontab
I'm having a problem:
i want to run a java program under linux with crontab.
my classes are in a directory and aren't in a package. i run em by invoking ./start which is a small script that i wrote. The script is in the same dir as the classes and invokes java by "java Main >>logjava.txt " but this doesn't seem to work all i get is an empty logfile
i need to run the program every day at 0800 so i inserted the following in crontab:
0 8 * 1-5 /var/"path"/start > logjava (where path is the path to the classes dir)
if i run the cmdline from anywhere on the prompt i get the result i want. I think it's because the cron runs it from the root dir thus making java unable to find the classes
Any suggestions would be welcome. or can some1 tell me how to make linux executables from the java (i usually use jsmooth for the windows exe)You can execute several commands in the process started by cron. You separate them using semicolons.
Have you tried a cron entry like this:
0 8 * 1-5 cd /var/"path";pwd;echo $PATH; ./start > logjavaOr, you may need to make sure the process started by cron gets the same environment as your interactive shells do, by explicitly loading your setup or .login scripts:
0 8 * 1-5 . $HOME/.setup;cd /var/"path";pwd;echo $PATH; ./start > logjava -
Hello all,
Is there a way to audit BPM processes in SAP CE? Lets say I have an approval process for vendors built in BPM. There are plenty of reasons why I may need to go back and show when and who approved a particular vendor. I think there are some other types of processes that may fall under some sort of regulatory requirement (ie: SOX) such as this as well.
Does anyone know how to do this? Is it possible to do this on an Ad Hoc basis? For example, could a business user given the appropriate security role go query some sort of log (the process manager doesn't seem to have this information) to get this information?
Thanks in advance!Hi Ethen,
I'm not sure whther the following will serve the purpose for you or not, however, would like you to take a look at it and check.
there is a way you can check the BPM Process instances for their status and for each of the tsaks in those processes for that matter.
In NWA->Performance and Availability Management->BPM Process Overview screen, you can see the 'The Number of Processes' section. There you'll be able to see the number of instances of processes with Error,Completed,In Progress etc. statuses. If you clicck the number you'll go to the screen with the list of the process instances with that statuses. e.g. If you click the number for 'Completed', you'll be shown the completed process instances. If you select any process from the list, at the bottom, you can see Details,Process Definition,Administrators,History(indicating status of each task and the processor who completed the task) and Context Dat( showing the values in different objects for the Process).
There is a button 'Show Releted Tasks' at the top. If you clcik this button for the selected process, you'll see the list of all the tasks for this process, showing the details such as LifeCycle Status, Task Instance Id, Process Instance ID,Start Time, Processor of the Task for each of those tasks. At the bottom part of the screen, you can see Details,Deadline,Owners,History,Context Data etc.
I guess, the Processors,Owners, History,Start Date etc. fields may serve the purpose for the auditor.
Regards,
Ajay -
Create a terminal through my own Java process
I am cross posting this thread: [http://forums.sun.com/thread.jspa?messageID=10913756|http://forums.sun.com/thread.jspa?messageID=10913756].
I believe that this will have to be accomplished using a Solaris or UNIX specific device.
The question is how I can call a process and tell it that it is running in a terminal.
For example "prstat -a" will adjust to fit the size of the window as well as respond to my keystrokes.
If I call it using a java process it will not do either of those two things because it detects that it it not in a terminal.
Is there a process or middleman I can call to create a terminal? Or do I have to write my own middleman in C/C++? (I would really prefer a middleman that is already part of Solaris)Darren_Dunham wrote:
Well, you're asking this in a general OS forum. You might want to ask this in a Java forum.Already did :)
In general, the process will have to allocate a psuedo-terminal (pty) and use that to talk to the process (so that it sees a terminal is being used). I don't really know how to do that in java.I don't think it is possible without a middleman. Still looking
I have no idea if it's useful, but this page says it's an implementation of Expect in java. Any implementation is either going to have to open ptys directly, or it's going to have to re-implement their functionality. You might be able to examine the code and see it's accomplishing that.
[http://expectj.sourceforge.net/]
That code uses the standard exec function. It does not actually create a terminal (although it still uses a shell). It is similar to running "sh | cat" on your own terminal.
I will search on psuedo-terminal (pty) later today
alan.pae wrote:
http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/cmd/prstat/prstat.c
http://src.opensolaris.org/source/search?q=prstat&defs=&refs=&path=&hist=&project=%2Fonnv
prstat was an example. I am not looking for a C method to detect a terminal as much as one to create a terminal. If there is something I am missing, please elaborate -
Bug with RMI server under Unix
I have a server/client apps, and it work under Windows but not under Unix.
With Unix i have an exception :
java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:
java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:350)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:137)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:124)
at java.net.Socket.<init>(Socket.java:268)
at java.net.Socket.<init>(Socket.java:95)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:20)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:115)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:494)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:169)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:78)
at ServeurChatImpl_Stub.connect(Unknown Source)
at ClientDistantImpl.main(ClientDistantImpl.java:85)
Why?Your question is very vague. Are you running the client and the server on the same machine or not at least it seems so. Are you using UnicastRemoteObject, RemoteObject or Activatable for extension. Also post some of your code and settings only then would somebody be able to help u.
-
Java develoment in unix or windows
Sometimes people ask u 'have u done java development in unix or wondows'. Whats the difference between developing java apps in unix or windows
also if you have developed under windows, and a few different unix platforms (Mac OS X, linux, solaris, HP/UX etc..) then you learn where the "Write Once, Run Anywhere" slogan doesn't quite hold (don't get me wrong this is usually in trivial ways)
eg. GUI layout needs a once-over on each platform usually just to make sure everything looks sensible, you may have relied on a behaviour of an API that was coincidental rather than in the spec, and another platform has implemented differently
there are also real-world deployment problems like users running your program on a machine that hasn't been patched properly, or hitting bugs in the API that only exist on one platform -
Process Control for Java processes
I am on a unix platform and suspect that one of my java programs (that is supposed to run all the time) may be dropping, thus requiring me to check up on it occationally to ensure it is still running, and if it isnt, I have to start it up. Does anyone know of a quick and dirty way for me to build a process control routine using crontab that will make sure it stays up.
What i first tried was to write a small perl script that looked for the process and if it wasnt there, it would try to start up the java program. The perl works great when I run it manually (thus starting up the process when it is down), but when I crontab the perl script, it doesnt seem to work. anyone know of a better way? or possibly a way that perl can start up the java process. I tried to embed the java command within a system statement within perl. I am lost right now and running out of ideas.
Thanks,
KevinI've a similar situation and attached are files that are working in an AIX box:
WfmScheduler and Forecaster are two java programs that are supposed to be running all the time. scheduler and forecaster are two script files that will start WfmScheduler and Forecaster. Each takes up to two parameters and writes their output to a corresponding log file. The cron task will check the ids every two minutes and if it does not see one of them, it will start them. I feel you are familiar with UNIX so it should be easy for you to understand the little script.
Good luck.
PC
file 1
#newcron.txt
0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58 * * * * /home/wfm/autostart.sh WFM 5
file2
# autostart.sh
# get WfmScheduler process ids
cmd_path1=WfmScheduler
cmd_path2=Forecaster
pid1=`ps -ef | eval grep [0-9]./.*$cmd_path1.$1 | nawk '{print $2}'`
if [ "$pid1" ]
then
else
rm ./scheduler.log
nohup ./scheduler $1 $2 > ./scheduler.log &
fi
# get Forecaster process ids
pid2=`ps -ef | eval grep [0-9]./.*$cmd_path2.$1 | nawk '{print $2}'`
if [ "$pid2" ]
then
else
rm ./forecaster.log
nohup ./forecaster $1 $2 > ./forecaster.log &
fi -
Error Generating PDF under Unix
Error Generating PDF under Unix
I am calling one report from another,
My requirement is when i run the first report the second report should generate pdf in unix directory ('/ora1/app/1.pdf').
If i use my local drive pdf is getting created but, if I use unix directory in the desname (dynamically) , iam getting error SCABA 14.
Please guide me !!!Hi,
has the oracle user respectively the User that starts the Oracle Reports process on your unix machine the right to write in the specified unix directory? If this doens´t help you make sure you give the report the right directory values and try some variants of this directory values.
If you´re running Oracle Reports 6i, what I hope is not the case, this might be interessting for you: http://www.oracle.com/technology/documentation/forms/6idocs/bugfix_p11_s.html
regards -
Checking running non java process
Hey,
i need to write a program that checks if a non-java process is still running (under windows) and to run a system command if it is not. Is there a way to check what process are still running?
ThanksYou will have to make use of native methods for that. Or use something with Runtime.exec();
-
Hi
I've got a problem with the installation of somme Java Packages under Linux.
What must I do with the "*.jar" file? I wont to install the neu Open Xchange Server under SuSE 9.1, but there are somme Problems with the Java Packages!
Can someone help me???
Thanks a lot!!
DambiHello Ishan,
The J2EE server is not starting because of the error in A. Please refer to note 965451 for solution.
The warnings in part B are insignificant. The startup framework has list with profile parameters and when a parameter is not in the list complains with warning. This warning doesn't mean that the parameter is wrong!
The jcontrol is the parent process of the server process and if the server process dies you will always get error message there.
Regards,
Ventsi Tsachev
Technology Development Support (J2EE Engine)
SAP Labs, Palo Alto, Ca (USA) -
Hi,
Can anyone tell me how do i check the looping processes in unix and how can i resolve it.I am not sure what you trying to ask, but my general understanding of you question tells, that you are trying to find out a session with lots of CPU utilitzation(looping)
on your command prompt type:
oracle(FC4/) % prstat
or
oracle(FC4/) % top
PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP
25291 oracle 3288M 3251M sleep 21 0 0:00.26 2.2% oracle/2
by looking at under the "PID" column and co-relating the value with "CPU" column value will tell you which session/process are consuming lots of CPU, as you have mentioned already that there are some looping processes.
hope it helps.
Cheers,
Z
Message was edited by:
Zahid Lakhani -
Aruutil (web-analysis users) under unix
Hello,
I created a xml document an want to set ARUImport.properties and adjust the
ARUUtil.sh. <- all under Unix.
We are using system 9.3. Can someone confirm that this process is working?
Can someone post me examples of these two files so I can see what I have to adjust (my unix is not installed,..yet)
Thanks[WARN] main com.hyperion.analyzer.usersession_base.HYABaseClient - Using Config: config_client.xml
[ERROR] main com.hyperion.atf.services.ServiceManager - Creating dummy lock.
[FATAL] main com.hyperion.analyzer.administrator.HYAAdministratorCommandLine - AUTHEN_CSSLoginFailed
com.hyperion.atf.security.authentication.TokenAuthenticationException: AUTHEN_CSSLoginFailed -
Identify the SAP Product Under Unix Env
Hello All
There are few hosts in our server enviroment which have SAP running on them.
We have a fingerprinting engine which runs through these hosts and collects useful data such as version string ,patch level etc.All these hosts are under unix env.
Our problem is we are not able to identify what product it is by just looking at version string.
We do not know if there is any way we can find out about that Product ,under unix env.
We want to know if there is any command or script that can be run and find out what product it is.
Regards
Abhi> Is anyone aware of 'saplicense -show' command ?
> Would this command help me?
No.
> and yes,anyone who uses any product should know it byhand but in my case i am not the end user .I am a third party survilling all the products existing in my enviroment.Thats what my engine does.
I can just repeat myself.
Even if you had all component information (ABAP and/or Java) it's not possible to distinguish from that for what purpose the system is used.
It's the same as having 100 PCs, all equipped with Word, Excel and SAPGUI. No matter what you do you can't tell whether the system is a secretary working place, a PC in the factory or a PC in the financial department.
Markus
Maybe you are looking for
-
The machine will not recognize it, even when holding in "x" and/or the mouse button upon startup. I tried to get to open firmware (to type in 'eject disc' at prompt), but when holding command, option, "o" and "f" at startup, I end up at the root menu
-
HT4322 Why can't I install the VoiceOver to my ipod shuffle??
I connected my iPod to my computer and it doesnt appears the installing guide for the voice over, please someone help me! I havent connect my iPod to my computer since october 2012 and I change the Hard Drive and now I cant install the VoiceOver thin
-
Need to bounce Database ?
Hello, Is it necessary to bounce(shutdown & startup) the database after configuring OEM manually? because Enterprise Manager is not able to connect to the database instance. The state of the components are listed below. when we click for "startup" af
-
Unable to Login Microsoft Virtual Academy Home page
Hi ! It might not be relevant in here to ask, but i am Unable to Login Microsoft Virtual Academy Home page since last 4 months. Have tried FireFox, Chrome & IE with Win 7 & Win Xp & Win 2003. But not being able to login with any of the combinations.
-
Problem when create custom BP number through PCUI
Hi Experts, we are working on CRM 5.0 & EP7.0 i have created custom function module (z function module) for generate the customs BP number( Dep country ,region) for BP t-code in GUI (CRM) System , when test through PCUI i can not get the PCUI field v