solaris

Better Memory (Heap) management on Solaris 10

假如想象 提交于 2020-01-07 06:55:11
问题 I have c code with embedded SQL for Oracle through Pro*C. Whenever I do an insert or update (below given an update example), update TBL1 set COL1 = :v, . . . where rowid = :v To manage bulk insertions and updates, I have allocated several memory chunks to insert as bulk and commit once. There are other memory allocations too going on as and when necessary. How do I better manage the memory (heap) for dynamic memory allocations? One option is to have the heap size configurable during the GNU

Creation of.so of files

核能气质少年 提交于 2020-01-07 04:15:07
问题 There is a set with - files with extension.с: avl_tree.c, buf_read.c, db_prep.c, file_process.c, global_header.c, traverser.c. Used include files are in folder/usr/gcc/4.4/bin/include except for jni.h, and libraries are in folder/usr/gcc/4.4/bin/lib. How from them to create.so the file (if it is possible specify all options in this command)? It me interests in communication by creation of native of methods by means of JNI. 回答1: You really should read the documentation of GCC. Notably invoking

mdb's substitute for gdb's catch throw?

末鹿安然 提交于 2020-01-07 02:58:24
问题 I am not very much expert in gdb and mdb but What i know is that :- `(gdb) catch throw` This will interrupt anytime an exception is thrown Do i have any similar command in mdb which will interrupt anytime an exception is thrown? 回答1: No, this doesn't exist as such; that's because on Solaris, it depends on your compiler and/or compile options which C++ ABI is being used (and how exceptions are being thrown). mdb isn't making an attempt to know all of that, and neither is gdb on Solaris (if you

What repository needs to be enabled for Sun Studio 12.5?

亡梦爱人 提交于 2020-01-06 19:47:28
问题 We are part of the Oracle OTN Network. Oracle Solaris Studio publisher is installed (enabled?) and allows us to support up to Sun Studio 12.4. We want to add support for Sun Studio 12.5 for the next release. We tried to install Sun Studio 12.5 following the 12.4 instructions, but we are not finding it: $ pkg list -af 'pkg://solarisstudio/developer/solarisstudio-125/*' pkg list: no packages matching 'pkg://solarisstudio/developer/solarisstudio-125/*' known $ pkg search solarisstudio | grep 125

awk -F not finding strings if AND condition is used

佐手、 提交于 2020-01-06 17:59:55
问题 I need to print second part of the searched string a="Hello I have a CREATE set TABLE as (uid, cid, mid)" Above string may continue as long as it needs. echo "$a" | awk -F"/CREATE/&&/TABLE/" '{print $2}' it returns nothing... It should return: as (uid, cid,mid) 回答1: Try this: echo "$a" | awk -F"CREATE.*TABLE" '{print $2}' as (uid, cid, mid) Not sure if regex in Field Separator do work. Using variable Field Separators: sep=two echo "_one_two_three_four" | awk -v var=$sep '{split($0,a,"_"var)

ppoll on solaris

℡╲_俬逩灬. 提交于 2020-01-06 14:04:34
问题 this code compiles in Linux but not Solaris, because apparently ppoll() is Linux specific (I get an undefined symbol error in Solaris with GCC). Any help converting it? I don't think just using poll() is a good idea, but then again, I didn't write this code. (I got it from Writing a command line shell with C; trying to use ncurses/C for the first time) #include <poll.h> #include <signal.h> #include <stdio.h> #include <termios.h> #include <unistd.h> #include <stdlib.h> #include <string.h>

ppoll on solaris

百般思念 提交于 2020-01-06 13:57:16
问题 this code compiles in Linux but not Solaris, because apparently ppoll() is Linux specific (I get an undefined symbol error in Solaris with GCC). Any help converting it? I don't think just using poll() is a good idea, but then again, I didn't write this code. (I got it from Writing a command line shell with C; trying to use ncurses/C for the first time) #include <poll.h> #include <signal.h> #include <stdio.h> #include <termios.h> #include <unistd.h> #include <stdlib.h> #include <string.h>

How to grep particular string occurring multiple times [duplicate]

佐手、 提交于 2020-01-06 10:09:23
问题 This question already has answers here : how to grep one string occuring multiple times from same file (3 answers) Closed 5 years ago . I want to capture a string "1 row affected..". But problem is there are n no of such string present in the same file. My concern to capture "1 row affected.." only which is present after the string " UPDATE kplustp..Service SET Service_Name = "PositionService", ServiceType = \'Z\', Hostname = " " " in log file. "1 row affected.." will be present after 3 4

high swap memory utilization

試著忘記壹切 提交于 2020-01-05 08:52:47
问题 Server Configuration: Physical Ram - 16Gb Swap Memory - 27Gb OS - Solaris 10 Physical Memory Free - 598 Mb Swap Memory Used - ~26Gb Java Version - Java HotSpot(TM) Server VM - 1.6.0_17-b04 My Task is to reduce used swap memory:- Solutions i have though of Stop all java applications and wait till physical memory is sufficiently freed. then execute command "swapoff -a"(Yet to find out Solaris equivalent of this command) ...wait till swap memory used goes down to zero. then execute command

high swap memory utilization

浪尽此生 提交于 2020-01-05 08:52:14
问题 Server Configuration: Physical Ram - 16Gb Swap Memory - 27Gb OS - Solaris 10 Physical Memory Free - 598 Mb Swap Memory Used - ~26Gb Java Version - Java HotSpot(TM) Server VM - 1.6.0_17-b04 My Task is to reduce used swap memory:- Solutions i have though of Stop all java applications and wait till physical memory is sufficiently freed. then execute command "swapoff -a"(Yet to find out Solaris equivalent of this command) ...wait till swap memory used goes down to zero. then execute command