hp-ux

What runs in a C heap vs a Java heap in HP-UX environment JVMs?

I've been running into a peculiar issue with certain Java applications in the HP-UX environment. The heap is set to -mx512, yet, looking at the memory regions for this java process using gpm, it shows it using upwards of 1.6GBs of RSS memory, with 1.1GB allocated to the DATA region. Grows quite rapidly over a 24-48hour period and the...

REDUX: How to overcome an incompatibility between the ksh on Linux vs. that installed on AIX/Solaris/HPUX?

I have uncovered another problem in the effort that we are making to port several hundreds of ksh scripts from AIX, Solaris and HPUX to Linux. See here for the previous problem. This code: #!/bin/ksh if [ -a k* ]; then echo "Oh yeah!" else echo "No way!" fi exit 0 (when run in a directory with several files whose name starts ...

Windows Performance Counter Port to Linux, HP-UX and AIX

We implemented a server application available on Windows only. Now we like to port it to Linux, HP-UX and AIX, too. This application provides internal statistics through performance counters into the Windows Performance Monitor. To be more precise: The application is a data base, and we like to provide information like number of connect...

C++ std::string Constructor

Hello all, any thoughts on this would be appreciated: std::string s1 = "hello"; std::string s2 = std::string(s1); I'd now expect these two strings to be independent, i.e. I could append ", world" to s2 and s1 would still read "hello". This is what I find on windows and linux but running the code on a HP_UX machine it seems that s2 and ...

Get full path of executable of running process on HPUX...

Hi All, I want to get the full path of the running process (executable) without having root permission using C++ code. Can someone suggest a way to achieve this. on Linux platforms i can do it by using following way. char exepath[1024] = {0}; char procid[1024] = {0}; char exelink[1024] = {0}; sprintf(procid, "%u", getpid()); strcpy(e...

Java memory consumption, "top" and HP-Ux

We ship Java applications that are run on Linux, AIX and HP-Ux (PA-RISC). We seem to struggle to get acceptable levels of performance on HP-Ux from applications that work just fine in the other two environments. This is true of both execution time and memory consumption. Although I'm yet to find a definitive article on "why", I believe ...

Breaking out of "tail -f" that's being read by a "while read" loop in HP-UX

Hi All, I'm trying to write a (sh -bourne shell) script that processes lines as they are written to a file. I'm attempting to do this by feeding the output of tail -f into a while read loop. This tactic seems to be proper based on my research in Google as well as this question dealing with a similar issue, but using bash. From what I...

Cross-platform way to get PIDs by process name in python

Several processes with the same name are running on host. What is the cross-platform way to get PIDs of that processes by name using python or jython? It's like pidof but in python (I don't have pidof anyway). I can't parse /proc because it might be unavailable (on HP-UX). I do not want to run os.popen('ps') and parse the output becaus...

How to diagnose/trace "sendsig: useracc failed." problem in HP-UX

I am trying to compile Ruby 1.9.1-p0 on HP-UX. After a small change to ext/pty.c it compiles successfully, albeit with a lot of warning messages (about 5K). When I run the self-tests using "make test" it crashes and core-dumps with the following error: sendsig: useracc failed. 0x9fffffffbf7dae00 0x00000000005000 Pid 3044 was k...

Get the path of link that it points to?

Is it possible to get the abolute path of the link that it is pointing to? Is there any simple system command? I need for all of the following OS HP-UX 11i, 1123u, 1123i AIX 5.2 and 5.3 Suse Linux 10 Solaris 10 ...

GCC --target triplet for HP-UX

I want to compile GCC and binutils which would produce 64bit executables. From GNU documents I've found out that it must look like ia64-*-hpux*. For ia64-hp-hpux11*, the default output type is 32bit: % file ./a.out ./a.out: ELF-32 executable object file - IA64 That is what I have: % uname -s -r -v -m HP-UX B.11.31 U ia64 ...

Compiling GNU software on HP-UX. yy* symbols problem

When trying to compile GNU software on HP-UX (binutils for example) I'm getting error meggages about unsatisfied symbols yyfnd, yyextra, yytextuc, yyolsp ... Some software can't be compiled using HP-UX own lex so i've included byacc and flex executables in my PATH. Is it HP-UX lex problem? How to fix it? ...

Debug core file with no symbols

I have a C application we have deployed to a customers site. It was compiled and runs on HP-UX. The user has reported a crash and we have obtained a core dump. So far, I've been unable to duplicate the crash in house. As you would suspect, the core file/deployed executable is completely devoid of any sort of symbols. When I load i...

Remote debugging on HPUX

I am trying to do remote debugging on HPUX using WDB but am not really getting anywhere. Any ideas or links to decent tutorials? ...

Appending to variable in Makefiles for HP-UX make

I'm trying to append some text to a variable in a Makefile for HP-UX's version of make. If i use the "normal" appender, like this: CFLAGS+=some text $(CFLAGS) comes out empty. If i reference the variable, like this: CFLAGS=$(CFLAGS) some text make complains about "infinitely recursive macro." Using a temporary variable like this...

How can I check the internal attributes of shared objects?

When using HP-UX I can use the chatr utility to report on various internal attributes of a shared library. It will also allow me to modify the internal attributes of shared libraries that I have built. The chatr utility can report, and in some cases modify, such things as: the run-time binding behaviour, the embedded library path list...

Getting past dates in HP-UX with ksh

Ok, so I need to translate a script from a nice linux & bash configuration to ksh in hp-ux. Each and every command expects a different syntax and i want to kill myself. But let's skip the rant. This is part of my script anterior=`date +"%Y%0m" -d '1 month ago'` I basically need to get a past date in format 201002. Never mind the thin...

Trying to test space in filesystem on Unix

I need to check if I Filesystem exists, and if it does exist there is 300 MB of space in it. What I have so far: if [ "$(df -m /opt/IBM | grep -vE '^Filesystem' | awk '{print ($3)}')" < "300" ] then echo "not enough space in the target filesystem" exit 1 fi This throws an error. I don't really know what I'm doing in shell. My highes...

HP-UX: libstd_v2 in stack trace of JNI code compiled with g++

Hello, uname -mr: B.11.23 ia64 g++ --version: g++ (GCC) 4.4.0 java -version: Java(TM) SE Runtime Environment (build 1.6.0.06-jinteg_20_jan_2010_05_50-b00) Java HotSpot(TM) Server VM (build 14.3-b01-jre1.6.0.06-rc1, mixed mode) I'm trying to run a Java application that uses JNI. It is crashing inside the JNI code with the following (...

hp-ux how to get 2 hours ago bash datetime

we are using hp-ux servers we need to get 2 hours ago datetime value in bash shell script ? how can i do that any experiences ? ...