We are currently running HP-UX 11 as our database server. The database is Progress version 9.1C.
As of late, some of our batch processes that run on the UNIX db server are erroring out because of what appear to be memory issues(at least according to Progress). The db error messages indicate that either there are too may subprocesses and it cannot fork, there is not enough memory to execute the request, or there is not enough memory to allocate a sort buffer. There does not appear to be a consistent pattern to when this happens. Also, we don't appear to be exceeding swap space.
Not sure what else it could be. If any of you have encountered similiar problems, how did you resolve it? Any and all feedback is appreciated.
Hi All, Just loaded AIX 6.1 and then got Firefox running on the workstation. To test out I wanted to download some small files from 'Perlz', and during this I'm told there's not enough room in the Downloads folder. What do I do to resize folders from the default and generally move memory around? In... (3 Replies)
Hi All,
I have a requirement, where i have to pool file A data to file B continuously and need to process the data in the file B.
Since the data need to be processed only once so i have to truncate the data in file A after every pool. So that on the next pooling i can get the fresh data and... (3 Replies)
We have a 6000 chassis with three blades in it. Two of the blades have "Oracle/Sun" memory in them with no complaints. The third blade is populated with Dataram dimms. That 3rd blade continues to flag a slot bad. Oracle has said they would not support the blade with Dataram memory it it. I didn't... (1 Reply)
I work with a network management tool, which, for various reasons, is installed on a solaris server.This is a Sunfire T2000 server with 16 CPUs and 8GB of RAM. I have installed a Solaris 10 ZFS and 8GB swap. From the beginning I had problems with memory occupation that it rises progressively to 95%... (4 Replies)
Hi, I need to put in shared memory a list made with object of this structure:
typedef struct Obj{
char objname;
struct Obj *nextObj;
}Object
I've filled my list with (for example) 10 elements, but when i try to put it in shared memory to be read by another process i get segmentation fault... (6 Replies)
Hi Programmers,
I just wrote a small script to print the percent complete.
This maybe useful for someone!
#!/usr/local/bin/perl
# Total from which percentage will be calculated
$cnt = 16;
$|=1;
for($i=0;$i<$cnt;$i++)
{
# Calculate Percentage
$percent = ($i/$cnt)*100; (13 Replies)
Hi everbody, i have a problem with shared memory and child-processes in C (unix).
I have a server that do forks to create (N) child processes. This processes work with a shared "stuct" thanks to shared memory and a semaphore. The problem is when a child modify the shared memory and the others... (2 Replies)
I don't know if this is better suited for the application section, but here goes.
We are currently running HP-UX 11 as our database server. The database is Progress version 9.1C.
As of late, some of our batch processes that run on the UNIX db server are erroring out because of what appear to... (3 Replies)
I need some advise.
I have an application server running several applications. When I try and start a particular application when the others are running I receive the following. This is appearing in the core file that is created.
... (1 Reply)
XLookupColor() XLookupColor()
Name
XLookupColor - get database RGB values and closest hardware-supported RGB values from color name.
Synopsis
Status XLookupColor(display, colormap, colorname, exact_def_return, screen_def_return)
Display *display;
Colormap colormap;
char *colorname;
XColor *exact_def_return, *screen_def_return;
Arguments
display Specifies a connection to an X server; returned from XOpenDisplay().
colormap Specifies the colormap.
colorname Specifies a color name string (for example "red"). Uppercase or lowercase does not matter. If the color name is not in the
Host Portable Character Encoding, the result is implementation-dependent.
exact_def_return
Returns the exact RGB values for the specified color name from the /usr/lib/X11/rgb database.
screen_def_return
Returns the closest RGB values possible on the hardware.
Returns
Zero on failure, non-zero on success.
Description
XLookupColor() looks up RGB values for a color given the colorname string. It returns both the exact color values and the closest values
possible on tthe screen specified by colormap.
XLookupColor() returns non-zero if colorname exists in the RGB database or zero if it does not exist.
To determine the exact RGB values, XLookupColor() uses a database on the X server. On UNIX, this database is /usr/lib/X11/rgb. To read
the colors provided by the database on a UNIX-based system, see /usr/lib/X11/rgb.txt. The location, name, and contents of this file are
server-dependent.
For more information see Volume One, Chapter 7, Color, and Appendix D, The Server-side Color Database, in this volume.
Errors
BadName Color name not in database.
BadColor Invalid colormap.
Structures
typedef struct {
unsigned long pixel;
unsigned short red, green, blue;
char flags; /* DoRed, DoGreen, DoBlue */
char pad;
} XColor;
See Also
XBlackPixel(), XWhitePixel(), XAllocColor(), XAllocColorCells(), XAllocColorPlanes(), XAllocNamedColor(), XFreeColors(), XParseColor(),
XQueryColor(), XQueryColors(), XStoreColor(), XStoreColors(), XStoreNamedColor().
Xlib - Color Cells XLookupColor()