solaris

high swap memory utilization

泪湿孤枕 提交于 2019-12-02 06:58:10
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 "swapon -a" Increase Physical Memory I need help on following points:- Whats the solaris equivalent of

Solaris - Why is java.lang.UNIXProcess.forkAndExec(Native Method) hanging

a 夏天 提交于 2019-12-02 01:54:05
问题 I have a java application running on Solaris. This application regularily launches external processes using Runtime.exec. It seems that after a while, having successfully launched such processes many time over, a launching of a process will hang. A thread dump taken at this point (and several minutes later) reveals that java.lang.UNIXProcess.forkAndExec is "stuck". Following is the top of the relevant stack trace taken from the thread dump: "Thread-85305" prio=3 tid=0x0000000102aae800 nid

Set the terminal tab title as prompt name in unix

痴心易碎 提交于 2019-12-02 01:41:00
问题 Lets say, the prompt is as below run_scripts > How to set that terminal tab title same as prompt i.e Terminal tab tile also should be run_scripts> So that terminal title should dynamically update when the prompt changes. 回答1: Many terminals emulators are able to understand the special escaping : "\033]0;foo\007" . 回答2: I know its a old post but i saw it today : Here is the answer: title `pwd` if title command does not works in your shell then: write a shell script with follwing contents

Solaris - Why is java.lang.UNIXProcess.forkAndExec(Native Method) hanging

两盒软妹~` 提交于 2019-12-01 23:53:57
I have a java application running on Solaris. This application regularily launches external processes using Runtime.exec. It seems that after a while, having successfully launched such processes many time over, a launching of a process will hang. A thread dump taken at this point (and several minutes later) reveals that java.lang.UNIXProcess.forkAndExec is "stuck". Following is the top of the relevant stack trace taken from the thread dump: "Thread-85305" prio=3 tid=0x0000000102aae800 nid=0x21499 runnable [0x7fffffff2a3fe000] java.lang.Thread.State: RUNNABLE at java.lang.UNIXProcess

Join lines based on pattern

蹲街弑〆低调 提交于 2019-12-01 23:40:53
I have the following file: test 1 My 2 Hi 3 i need a way to use cat ,grep or awk to give the following output: test1 My2 Hi3 How can i achieve this in a single command? something like cat file.txt | grep ... | awk ... Note that its always a string followed by a number in the original text file. sed 'N;s/\n//' file.txt This should give the desired output when the content is in file.txt paste -d "" - - < filename This takes consecutive lines and pastes them together delimited by the empty string. awk '{printf("%s", $0);} !(NR%2){printf("\n");}' file.txt EDIT : I just noticed that your question

大数据教程(1.8):Linux之SSH免密登录配置

谁说我不能喝 提交于 2019-12-01 23:09:24
在工作中,有很多时候,我们需要使用自动化脚本远程安装软件或者执行程序。此时必须要实现免密码登录才好做相应操作。 博主今天就详细的分享Linux之间的ssh免密码登录配置过程,帮助小白们理解并掌握SSH。首先,在开始之前,我们来了解下SSH。 一、什么是SSH? SSH 为 Secure Shell 的缩写,由 IETF 的网络小组(Network Working Group)所制定;SSH 为建立在应用层基础上的安全协议。SSH 是目前较可靠,专为远程登录会话和其他网络服务提供安全性的协议。利用 SSH 协议可以有效防止远程管理过程中的信息泄露问题。SSH最初是UNIX系统上的一个程序,后来又迅速扩展到其他操作平台。SSH在正确使用时可弥补网络中的漏洞。SSH客户端适用于多种平台。几乎所有UNIX平台—包括HP-UX、Linux、AIX、Solaris、Digital UNIX、Irix,以及其他平台,都可运行SSH。 二、SSH基本用法 ssh命令用于远程登录上Linux主机。 常用格式:ssh [-l login_name] [-p port] [user@]hostname 更详细参数配置的可以用ssh -h查看 不指定用户,默认使用root账户登录   ssh 192.168.29.129 指定用户:   ssh -l root 192.168.29.129   ssh

Solaris 10 CC Preprocessor bug causes undefined symbols

我怕爱的太早我们不能终老 提交于 2019-12-01 21:39:53
I have a very very simple C++ file as follows that I'm compiling on Solaris 5-10 with the CC compiler. Here is the source code in my file myTest.C: #include <map> std::map<int, bool> myVar2; I would like to first run the CC pre-processor on this file, examine the pre-processed file, and then compile that pre-processed file into an object file. I call this "indirect-compiling". To do this, I do the following: % CC -P -o myFile_indirect.i myFile.C % CC -c -o myFile_indirect.o myFile_indirect.i I would also like to compile this file without a separate pre-processing step as is normally done. I

Display all fields except the last

纵然是瞬间 提交于 2019-12-01 16:01:28
I have a file as show below 1.2.3.4.ask sanma.nam.sam c.d.b.test I want to remove the last field from each line, the delimiter is . and the number of fields are not constant. Can anybody help me with an awk or sed to find out the solution. I can't use perl here. Both these sed and awk solutions work independent of the number of fields. Using sed : $ sed -r 's/(.*)\..*/\1/' file 1.2.3.4 sanma.nam c.d.b Note: -r is the flag for extended regexp, it could be -E so check with man sed . If your version of sed doesn't have a flag for this then just escape the brackets: sed 's/\(.*\)\..*/\1/' file 1.2

Adding User License Agreement in Solaris package

走远了吗. 提交于 2019-12-01 14:55:29
I have asked similar question for Linux RPM ( 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 mentioned. $pkgadd -d . SUNWsamfsr SUNWsamfsu Processing package instance from Sun SAM and Sun SAM-QFS software Solaris 10 (root)(i386) 4.6.5,REV=5.10.2007.03.12 Sun SAMFS - Storage & Archiving Management File System Copyright (c) 2007 Sun Microsystems, Inc. All Rights Reserved. ------------------------

Adding User License Agreement in Solaris package

早过忘川 提交于 2019-12-01 13:14:10
问题 I have asked similar question for Linux RPM (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 mentioned. $pkgadd -d . SUNWsamfsr SUNWsamfsu Processing package instance from Sun SAM and Sun SAM-QFS software Solaris 10 (root)(i386) 4.6.5,REV=5.10.2007.03.12 Sun SAMFS - Storage & Archiving