I'm trying to determine the CPU utilization of specific LWPs in specific processes in Solaris 10 using data from the /proc filesystem. The problem I have is that sometimes a utilization counter decreases.
Here's the gist of it:
// we'll be reading from the file named /proc/<pid>/lwp/<lwpid>/lwpusage
std::stringstream filename;
filename...
The recv() library function man page mention that:
"It returns the number of bytes received. It normally returns any data available, up to the requested amount, rather than waiting for receipt of the full amount requested."
If we are using blocking recv() call and requested for 100 bytes:
recv(sockDesc, buffer, size, 0); (where siz...
We have recently been migrating a number of applications from running under RedHat linux JDK1.6.0_03 to Solaris 10u8 JDK1.6.0_16 (much higher spec machines) and we have noticed what seems to be a rather pressing problem: under certain loads our JVMs get themselves into a "Death Spiral" and eventually go out of memory. Things to note:
...
Hi,
I'm trying to get / compile / install mod_mono for Apache 2.2.4 on Solaris 10.
Apache Version: Apache/2.2.4 (Unix)
[/]# uname -a
SunOS wexch 5.10 Generic_118855-36 i86pc i386 i86pc
I have blastwave installed (blastwave.org), and am a little disappointed that it doesn't have a mod_mono package, or include mod_mono with other pack...
hi,
I am porting our application from solaris sparc to solaris x86 and I encountered a size differences of struct between these two architecture. for example;
I have a struct like
typedef struct mystructS
{
double a;
double b;
double c;
double d;
double e;
double f;
double g;
double h;
double aa;
double ab;
doubl...
On Solaris 10, I have a parent and child process. I kill the child process with kill -KILL. I want the fastest possible detection of this in the parent process (this is a master/slave system and the goal is for the parent to request its backup to take over as fast as possible). The parent process needs to know that the child has start...
I have a number of application environments based in Solaris containers. Is there some method to take those environments and port them to something usable by either VMWare Workstation or Sun VirtualBox? Both the source and target hardware is x86, if that helps.
...
Does NSIS support Linux and Solaris? I read somewhere that we can compile nsis script on Linux but cant execute the .exe generated on any other platforms but Windows. Can somebody put more light in this?
...
how to stop syslog messages to write console on solaris ?
...
I have a cron job set up that will start my script.
The intent of this script is to kill a process that is currently running, and start up a new version of this process (CHECKDB). CHECKDB needs to be running all the time, so we have a start_checkdb script that is basically a infinite loop that runs CHECKDB; if it crashes, it stays in t...
I currently use visual studio 2008 for creating projects that can run on windows. Can you recommend me of other tools that can be used to develop applications for other operating systems?(Linux, Mac, Solaris)
The most prominent programming languages will do(C++, C#, F#)
And scripting languages(PHP, Perl, etc)
...
I am trying to build Subversion 1.6.9 in Solaris 10:
uname -a:
SunOS drccd 5.10 Generic_141414-10 sun4u sparc SUNW,Sun-Fire-V890 Solaris
To build it I run the following:
export CC="gcc -I/home/susher/openssl-0.9.8l/ssl_install/include
-L/home/susher/openssl-0.9.8l/ssl_install/lib"
export CFLAGS="-O2 -g -I/home/s...
I have a Solaris sparc machine and when i build my programs, it generates 32bit code which should be 64bit. How to check the cause?
$uname -a
SunOS sol 5.10 Generic_118833-33 sun4u sparc SUNW,Sun-Fire-V240
$/usr/sfw/bin/gcc --version
gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
Copyright (C) 2004 Free Software Foundation, Inc.
T...
I have asked similar question for Linux RPM (http://stackoverflow.com/questions/2132828/adding-license-agreement-in-rpm-package). Now i have same query for Solaris package. I could not get any helpful link / details if it is possible. But I have found a package which does exactly the same thing but how it has been implemented, its not me...
I'm writing a shell script and I need to strip FIND ME out of something like this:
* *[**FIND ME**](find me)*
and assign it to an array. I had the code working flawlessly .. until I moved the script in Solaris to a non-global zone. Here is the code I used before:
objectArray[$i]=`echo $line | nawk -F '*[**|**]' '{print $2}'`
...
I found an odd problem when I run a simple csh script on Solaris.
#!/bin/csh
echo $LD_LIBRARY_PATH
Let's call this script test. When I run this:
shell> echo $LD_LIBRARY_PATH
shell> /usr/lib:/usr/openwin/lib:/usr/dt/lib:/usr/local/lib:/lib:/my_app/lib
shell> ./test
shell> /usr/lib:/usr/openwin/lib:/usr/dt/lib:/usr/local/lib:/lib
The...
I am running a Java application on a Solaris10 with Chinese. Now there are some files in a directory with chinese filenames. When I do files = new File(dir).list() where "dir" is the parent directory containing that chinese file, I get the result filename files[0] as ?????(some junk characters).
Now the deal is that my programs file.enc...
In my C program I want to know if my executable is run in foreground like this
$./a.out
or like this
$./a.out &
...
There is a perl script that needs to run as root but we must make sure the user who runs the script did not log-in originally as user 'foo' as it will be removed during the script.
So how can I find out if the user, who might have su-ed several times since she logged in has not impersonated 'foo' at any time in that chain?
I found an i...
On solaris i can run the pmap command on a core file to get the memory map of a crashed process. Unfortunately the pmap command available on HPUX and Linux doesn't provide this option. Any pointers how i can get this information on these platforms?
Thanks!
...