Unix-Process-ids and tuxedo - Behaviour ?
We have a situation where different tuxedo servers are acquiring a process id which was allocated to a different one after some time.
Is this an error.
Here is an example :
Tux Servers Process ID
Server 1 100
Server 2 200
and at a later time :
Tux Servers Process ID
Server 1 200
Per Tuxedo server 2 is in sleep mode and the server 1 is running , is this normal.
Server 1 and Server 2 are in same group.
A process on Unix or Linux will retain its process ID for as long as it is
alive. Once the process dies, its process ID can be reused by another
process.
If server1 and server2 are shutdown or die and server1 is rebooted or
restarted, it is possible for server1 to have the same process ID that
server2 originally had.
Process IDs on Unix have traditionally gone up to 30000, which was fine to
ensure that a process ID would not be quickly reused back in the days when
computers were slower and supported fewer concurrent processes. In recent
decades, IBM and some other Unix vendors have increased the allowable range
for a process id well beyond 30000, which results in process numbers being
reused less frequently.
If the reuse of process IDs is causing problems for scripts in your
application, you may want to look at the process start time as well as the
process ID. In "ps -f" output, this is under the STIME column. If using
the T_CLIENT MIB class, you can look at the TA_TIMESTART attribute, and if
using the T_SERVER MIB class, you can look at the TA_TIMERESTART MIB
attribute.
Ed
<hunki> wrote in message news:[email protected]..
We have a situation where different tuxedo servers are acquiring a process
id which was allocated to a different one after some time.
Is this an error.
Here is an example :
Tux Servers Process ID
Server 1 100
Server 2 200
and at a later time :
Tux Servers Process ID
Server 1 200
Per Tuxedo server 2 is in sleep mode and the server 1 is running , is this
normal.
Server 1 and Server 2 are in same group.
Similar Messages
-
Hello!
We have a customer that need an example of integration: Oracle AS -> Tuxedo and Tuxedo -> Oracle AS, with ProcessConnect. Does anyone have some material, examples, experience with Tuxedo (AIX) and Process Connect (SuseLinux 8)?
Thank you in advance.A process on Unix or Linux will retain its process ID for as long as it is
alive. Once the process dies, its process ID can be reused by another
process.
If server1 and server2 are shutdown or die and server1 is rebooted or
restarted, it is possible for server1 to have the same process ID that
server2 originally had.
Process IDs on Unix have traditionally gone up to 30000, which was fine to
ensure that a process ID would not be quickly reused back in the days when
computers were slower and supported fewer concurrent processes. In recent
decades, IBM and some other Unix vendors have increased the allowable range
for a process id well beyond 30000, which results in process numbers being
reused less frequently.
If the reuse of process IDs is causing problems for scripts in your
application, you may want to look at the process start time as well as the
process ID. In "ps -f" output, this is under the STIME column. If using
the T_CLIENT MIB class, you can look at the TA_TIMESTART attribute, and if
using the T_SERVER MIB class, you can look at the TA_TIMERESTART MIB
attribute.
Ed
<hunki> wrote in message news:[email protected]..
We have a situation where different tuxedo servers are acquiring a process
id which was allocated to a different one after some time.
Is this an error.
Here is an example :
Tux Servers Process ID
Server 1 100
Server 2 200
and at a later time :
Tux Servers Process ID
Server 1 200
Per Tuxedo server 2 is in sleep mode and the server 1 is running , is this
normal.
Server 1 and Server 2 are in same group. -
Command to find the top unix processes doing high disk read and writes
I would like to know 'the unix command to find the top unix processes doing high disk reads or/and writes
If any one knows the solution please help me?
-SwamyFrom the oracle side you can obtain OS process id for sessions having some waits for user I/O
select p.spid, s.sid, s.sql_id
from v$session s, v$process p
where s.paddr=p.addr
and s.sid in
select sid from v$session_wait
where wait_class='User I/O'
);and to see sessions that are currently waiting on user I/O use
select p.spid, s.sid, s.sql_id
from v$session s, v$process p
where s.paddr=p.addr
and s.sid in
select sid from v$session_wait
where wait_class='User I/O'
and wait_time=0
);HTH, Peter -
One Unix process and multiple Oracle sessions
Hi All,
When I checked one particular Unix process, I have seen that in the database there are 3 different Oracle sessions spanning days between them. Can you please tell me how this is possible.
Regards
SatishHi Yas,
The query I ran is tghe following.
SELECT Substr(a.username,1,15) "Username",
a.osuser "OS User",
a.sid "Session ID",
a.serial# "Serial No",
d.spid "Process ID",
a.lockwait "LockWait",
a.status "Status",
Trunc(b.value/1024) "PGA (Kb)",
Trunc(e.value/1024) "UGA (Kb)",
a.module "Module",
Substr(a.machine,1,15) "Machine",
a.program "Program",
Substr(To_Char(a.logon_Time,'DD-Mon-YYYY HH24:MI:SS'),1,20) "Time"
FROM v$session a,
v$sesstat b,
v$statname c,
v$process d,
v$sesstat e,
v$statname f
WHERE d.spid=29789 and
a.paddr = d.addr
AND a.sid = b.sid
AND b.statistic# = c.statistic#
AND c.name = 'session pga memory'
AND a.sid = e.sid
AND e.statistic# = f.statistic#
AND f.name = 'session uga memory'
ORDER BY 1,2;
I passed spid to it.
Regards
Satish -
Problems with Runtime.exec() and certain Unix processes
Certain Unix processes don't behave correctly when run from Java using Runtime.exec(). This can be seen by running /bin/sh and trying to interact with it interactively. The issue appears to be that /bin/sh (and many other Unix tools) are checking the file handles on the spawned process to see if they are associated with a TTY.
Is there any way to associate a process spawned by Runtime.exec() with a terminal or alternatively, is there a JNI library available that would setup the process correctly and still provide access to the input and output streams?
Our objective is to have the flexibility of expect in being able to run and interact with spawned processes. A bug was opened at one point but closed back in 1997 as being a fault in the spawned process, not Java.
Bug ID: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4058689#include <stdio.h>
void doit() {
int c;
while((c=getc(stdin)) != EOF) {
printf("%c",c);
int main() {
freopen("/dev/tty", "r", stdin);
doit();
}This program reopens its standard input against /dev/tty and catenates it to stdout. And voila, it takes its standard input from the terminal, even though it was started with stdin against /dev/null..
$ gcc b.c -o b
$./b < /dev/null
buon giorno
buon giorno -
/etc/services, port numbers & Unix processes
I have some questions about /etc/services, ports and unix processes.
First, it appears to me that a process can listen on a port WITHOUT the service/port number being in /etc/services. Is this correct?
For example we have TUXEDO apps that listen on high number ports even though there are no corresponding service/port pairs in /etc/services.
Second, How do you find out which Unix process is listening on a given port?
Forexample, when you run netstat -a and get something that looks like:
host.port.........................LISTEN
How do you get the Unix PID listening on this port?Hi
A service can run on any port number, as I understand it, /etc/services just describes the well know port number services.
As for finding out what process is listening on a given port, I recall a previous post that suggested
using lsof with some switches.
I think it was :
lsof -i -n -P
I've never tried it myself.
You can find lsof at www.sunfreeware.com -
I recently started using my desktop iMac 27" and have been having problems since installing Mavericks, not saying that Mavericks is the problem per se. I think I have too many accounts with too many names, with too many Apple IDs and too many passwords, email passwords and Apple ID passwords, and keychain passwords, etc. Can't keep them straight even though I write everything down. The screen has been making me log in and log out with Account name and passwords after everything I've been doing, also confused about Users and Groups and how to sync everything. I finally just "shut down" everything and the screen was black. When I turned the computer on again, the circular gear in the middle just kept turning but nothing happened after that. Then I held the on button in the back until the screen went black again.
What should I do? Is there a way to combine all my accounts into one account with one Apple ID? I should say that I also have trying to use iCloud and it has different IDs and passwords. Also when I try to log in with one account name, I can't enter anything I write,and when I type on the keyboard, nothing appears on the screen, although I can receive emails, I can't send them.
In another account, what I type does appear on the screen, but I think it's an earlier account and doesn't translate aver to the other account. ALTHOUGH i set up iCloud accounts, they don't appear any more.
Very confused. Any Ideas about how I can get the computer to start up again and show a new screen?
Thanks to anyone who has workable suggestions.If you really believe that your system has been compromised, here's what you do:
Disconnect your Mac from your cable modem;
Back up any documents on your system that are important to you;
Boot your Mac from the system installation disks that came with it (insert the disk, restart your Mac, and hold down the "c" key until you get the "spinning gear" icon);
Choose a language and click the arrow button to continue;
From the Utilities menu, choose Disk Utility;
In Disk Utility, select your computer's hard drive;
Click the "Erase" tab;
Click the "Security Options" button and select to have it overwrite all the data on the hard drive;
Click the "Erase" button and allow it to process;
Once the "erase process has completed (it will take a while), reinstall Mac OS X.
Or, if this is too much for you to accomplish on your own, take your system to an Apple Store and have them help you perform these steps. If your system was indeed compromised, this will remove any such hack. You can then set up a new user account for the computer, reinstall your applications (reinstall only from original disks or downloads from the company making the software) and documents, and reconnect to the Internet.
Note that when you reconnect to the cable modem, you may still get an IP address starting with 198. This is normal with some cable modems and probably not a cause for concern. It will not be an indication that your system is still compromised; that will not be possible if you perform all the above steps.
Regards. -
I have two Apple ids and my syncing from iMac to MacBook and iPod Touch is messed up. I want to consolidate all of my contacts and calanders (at least!) under one of my ids, and also use that one for the App Store. What can I do?
Purchases are forever tied to the ID used to buy the items, so you don't want to change the iTunes Store account to a different ID.
You cannot "consolidate" or merge two IDs.
For your use of icloud, just decide which ID (or account) you want to use. The following tells you how to move data from one icloud account to another:
When connected to the account you want to GET data from, Go to Settings>iCloud and turn all data that is syncing with iCloud (contacts, calendars, etc.) to Off.
When prompted choose to keep the data on the iPhone.
After everything is turned off, scroll to the bottom and tap Delete Account. Next, set up a new iCloud account using a different Apple ID and turn iCloud data syncing for contacts, etc. back to On. When prompted, choose Merge. This will upload the data to this new account.
Note that this only affects the "Apple data" like contacts, calendars, reminders, etc. Many third party apps also use iCloud to store data files there. These files may be lost in the process, unless the apps also keep the data locally on the device.
NOTE: Photos in the photo stream (if you use it) will not transfer to the new account. It is advised that you save the photos to a computer before performing the account switch. -
Getting error while posting reports on Unix Process Scheduler Server
Hello ,
I am getting the below error while posting reports on Unix Process Scheduler Server .
PSDSTSRV.14338 (2) [09/08/09 08:21:34 PostReport](1) (JNIUTIL): Java exception thrown: java.io.IOException: Stream closed.
PSDSTSRV.14338 (2) [09/08/09 08:21:34 PostReport](3) HTTP transfer error.
PSDSTSRV.14338 (2) [09/08/09 08:21:34 PostReport](3) Post Report Elapsed Time: 0.0900
PSDSTSRV.14171 (10) [09/08/09 08:21:34 PostReport](1) (JNIUTIL): Java exception thrown: java.io.IOException: Stream closed.
Please advise ,thank you.user5838027 wrote:
Node name :PS_HTTP
URL: http://ddas1020.dev.com:16000/psreports/hrdmo
URI:SchedulerTransfer/hr90dmo
URI Port: 16000
Please let me know if any other info is needed.
Thanks.
typo...
URL: http://ddas1020.dev.com:16000/psreports/hr90dmo
Hopefully, your application URL looks like http://ddas1020.dev.com:16000/psp/hr90dmo/..., your URI host looks like ddas1020.dev.com (or corresponding ip address), and hhtp is checked.
Did you also tried to give the web login/password ?
Nicolas. -
BOM component Qty is getting rounded to next value in Process Order and BOM
We are in ECC 6.0, and maintaining BOM where Item quantities are decimal places e.g 0.3lb with respect to Hader qty. Now when we are craeting process order or exploding in CS11, we are seein that item quantities are getting rounded to next full integer e.g 1, 2 or 3.
What could be the reason for this behaviour.In standard "lb' doesn't have decimal point
If you want decimal point
go to CUNI
select the mass
you can find the lb
maintain the decimal point as 3, & decimal point rounding as as 3, system will show 3 decimal point in process order and in CS11 -
How to find sql statement with Unix process pid
Hi
how to find sql statement with Unix process pid
is there any view to find that.
please if so let me know
Thanks in advancethis is how I am doing this:
oracle 7352340 7459066 0 07:47:10 - 0:00 oracleJDERED (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
oracle 7459066 5386396 2 07:47:10 pts/1 0:01 sqlplus
select sid,serial# from v$session where process='7459066';
SID SERIAL#
2178 6067
select sql_text
from
v$sqlarea a,
v$session b
where a.hash_value = b.sql_hash_value
and b.sid = 2178
; -
Hello,
How can I know the unix process Id from the session ID of Oracle?
I have killed the SID using kill session but, I go a message saying that the session is maket for kill
thank youhello,
you can use this query;
SELECT P.SPID, S.SID, S.SERIAL#
FROM V$PROCESS P, V$SESSION S
WHERE P.ADDR = S.PADDR
AND S.SID = <your SESSION ID>;the SPID is the process ID,
also i suggest to use DISCONNECT SESSION instead of kill session :=)
ALTER SYSTEM DISCONNECT SESSION 'sid,serial#' IMMEDIATE; -
Can someone give me an example of how to start and stop UNIX processes from a java program. I know I need the Runtime object. Thanks in advance!
Since kill is a built in shell command, you need to
call it from a script. It can't be called directly
because there is no executable called kill in unix.Wrong.
$ ls -l /usr/bin/kill
-rwxr-xr-x 1 root root 14904 Aug 29 2002 /usr/bin/kill -
Monitoring Unix Processes - User defined Metrics
Hello,
I would like to setup a metric to alert if one specific unix process goes down.
Could some one share the steps? Thanks.Dear Rob Zoeteweij,
We are using resin web server. The resin server services(process) need to monitor.
we used start and stop the service by folowing two commands.
httpd.sh start -- starts
httpd.sh stop -- stops the web server
===========================
The details about resin server, please visit
http://www.caucho.com/resin-3.0/install/httpd.xtp.
Regards
Ruhul -
I have a Unix Process, constructed on C Language, this process access a shared library to perform some tasks..
Can I create a java program to run as a shared library ???
I want delete this C Shared Library and create a java shared library...
Is it possible ???? Or I need to still having my C garbage problems.. hehehe
Thanks a lot...
JulianoYou can interface betwee C and Java using JNI (Java Native Interface). With JNI you can call Java from C and C from Java. Search this website for more info on JNI (have a look at the Tutorials, see the links on the left side of this page).
Jesper
Maybe you are looking for
-
Caanot restart apache after installing mod_jk connector
Hallo, I have installed the mod_jk connector to use seperate apache and tomcat instances for my web ap. I followed the instructions here: http://www.onjava.com/pub/a/onjava/2002/11/20/tomcat.html?page=2 After making changes to httpd.conf, I am unable
-
HP Officejet J5780 AIO - Software Installation error message with OS Win7
During a Full Version software installation (from HP web site) at the point of "Device Installation" the message "Fatal error " popped up followed by the immediate uninstallation of "unecessary components". The procedure reinstalled data to completio
-
HT201210 Can someone help me with an error message I get when updating to itunes version 6?
I get the error message 'itunes could not back up the iphone because the back up was corrupt or not compatible with the iphone' when trying to update my iphone 4 to itunes v6.0. What do I do? HELP! Thank you
-
I have a HP Probook 6445b how do I restore to factory settings please help thanks
How do I restore my HP Probook 6445b to factory settings
-
Hi anyone, Does anyone know any FM to update the table LTAK. I am using the FM L_TO_CREATE_POSTING_CHANGE but it isn't working Thanks!