rhel6 interview questions
Top rhel6 frequently asked interview questions
I am trying to download a file in rhel6 and use tar to uncompress it.
I am running this on docker. I get a wierd error saying /bin/sh: tar: command not found.
I am new to linux and docker. Can someone help.
#HELLO
FROM rhel6
MAINTAINER xxxxx
#RUN yum -y install wget
RUN yum update -y && yum clean all
#RUN yum -y install tar
RUN curl -OL http://username:pwd@downloads.datastax.com/enterprise/dse-4.0.3-bin.tar.gz
RUN curl -OL http://username:pwd@downloads.datastax.com/enterprise/opscenter-4.0.3.tar.gz
RUN echo $PATH
RUN tar -xzvf opscenter-4.0.3.tar.gz
RUN rm *.tar.gz
Source: (StackOverflow)
I'm using Eclipse as IDE on RHEL 6.5 with JDK 1.8
When I try to declare some object of JTable
, it doesn't find appropriate import package/class.
When I manually try to write import statement, it only shows up to javax.swing
, but it doesn't show JTable
there after.
import javax.swing.JTable;
public class JTableTest {
public static void main(String args[]) {
JTable obj1 = new JTable();
}
}
it only happens when using JTable other imports are not affected...
Source: (StackOverflow)
I'm first timer to Ruby on Rails, trying to set it up on RHEL 6. Since the package manager had very older version of Ruby. I compiled from source with Ruby 1.9.3 and installed rails using
$gem install rails
Created a new app using
$rails new /path/to/newapp
but now when I try to run
$rails server
it crashes with given log
=> Booting WEBrick
=> Rails 3.2.1 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- openssl (LoadError)
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `block in require'
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:236:in `load_dependency'
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `require'
from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/session/cookie.rb:1:in `<top (required)>'
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `require'
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `block in require'
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:236:in `load_dependency'
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `require'
from /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.2.1/lib/action_dispatch/middleware/session/cookie_store.rb:4:in `<top (required)>'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/application/configuration.rb:140:in `const_get'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/application/configuration.rb:140:in `session_store'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/application.rb:268:in `block in default_middleware_stack'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/application.rb:232:in `tap'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/application.rb:232:in `default_middleware_stack'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/engine.rb:469:in `app'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/application/finisher.rb:31:in `block in <module:Finisher>'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/initializable.rb:30:in `instance_exec'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/initializable.rb:30:in `run'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/initializable.rb:55:in `block in run_initializers'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/initializable.rb:54:in `each'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/initializable.rb:54:in `run_initializers'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/application.rb:136:in `initialize!'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /home/anurag/rubyapp/config/environment.rb:5:in `<top (required)>'
from /home/anurag/rubyapp/config.ru:4:in `require'
from /home/anurag/rubyapp/config.ru:4:in `block in <main>'
from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
from /home/anurag/rubyapp/config.ru:1:in `new'
from /home/anurag/rubyapp/config.ru:1:in `<main>'
from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:40:in `eval'
from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:40:in `parse_file'
from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:200:in `app'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/commands/server.rb:46:in `app'
from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:301:in `wrapped_app'
from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:252:in `start'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/commands/server.rb:70:in `start'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/commands.rb:55:in `block in <top (required)>'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/commands.rb:50:in `tap'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
I've tried to search about this error but did not find a working solution.
Apart from this I'd like to point me to some useful resource which explains best practices in Ruby on Rails.
-
Source: (StackOverflow)
I had earlier followed https://docs.docker.com/installation/rhel/ to install docker on rhel6.5. This used to work till today, till I decided to run "yum update" and upgraded to docker1.3.
Now, /etc/init.d/docker start fails.
-bash-4.1$ sudo /etc/init.d/docker status
docker dead but pid file exists
Contents of /var/log/docker:
-bash-4.1$ more /var/log/docker
\nSun Nov 30 23:29:14 IST 2014\n
2014/11/30 23:29:14 docker daemon: 1.3.1 c78088f/1.3.1; execdriver: native; grap
hdriver:
[dd907331] +job serveapi(unix:///var/run/docker.sock)
[info] WARNING: You are running linux kernel version 2.6.32-431.el6.x86_64, whic
h might be unstable running docker. Please upgrade your kernel to 3.8.0.
/usr/bin/docker: relocation error: /usr/bin/docker: symbol dm_task_get_info_with
_deferred_remove, version Base not defined in file libdevmapper.so.1.02 with lin
k time reference
I don't have an option to upgrade to rhel7 yet, and have already tried to
- yum downgrade - but yum list doesn't list the older version anymore
- compile the older docker source, but docker doesn't let you build a binary anymore without the docker binary installed :(
Source: (StackOverflow)
The documentation states that the default value for buffering is: If omitted, the system default is used
. I am currently on Red Hat Linux 6, but I am not able to figure out the default buffering that is set for the system.
Can anyone please guide me as to how determine the buffering for a system?
Source: (StackOverflow)
Typing the command: odbcinst -q -s on RHEL 6, I get the following error message:
odbcinst: SQLGetPrivateProfileString failed with .
All my DSN's are also not showing up when I run:
odbcinst -q -d
Source: (StackOverflow)
my questions is similar to this one -
Problems installing R on Linux CentOS 6.3
I installed epel, but when I run yum install R, I get the two dependency problems -
Error: Package: R-core-3.0.1-2.el6.x86_64 (epel)
Requires: libjpeg.so.62(LIBJPEG_6.2)(64bit)
Error: Package: R-core-devel-3.0.1-2.el6.x86_64 (epel)
Requires: texinfo-tex
I tried installing texinfo-tex using the rpm file from -
http://rpm.pbone.net/index.php3/stat/4/idpl/15993086/dir/scientific_linux_6/com/texinfo-tex-4.13a-8.el6.x86_64.rpm.html
However, this takes me into a long tree of missing dependencies. I downloaded and tried installing 5 different rpm files and each time there were some missing dependencies. Ans this was just one branch of this tree of dependencies. I figured, there has got to be a better way. Can some one help? This has been driving me nuts.
Edit: Another option I'm trying is building R from source. Not sure if this will work given the missing packages though. For now however, it says it can't find a fortran compiler ("No F77 compiler found"). I installed gcc, thinking that it would have one, but apparently not.
Source: (StackOverflow)
I'm trying to get my head around something that's been working on a Centos+Vagrant, but not on our providers RHEL (Red Hat Enterprise Linux Server release 6.5 (Santiago)). A sudo service docker restart hands this:
Stopping docker: [ OK ]
Starting cgconfig service: Error: cannot mount cpuset to /cgroup/cpuset: Device or resource busy
/sbin/cgconfigparser; error loading /etc/cgconfig.conf: Cgroup mounting failed
Failed to parse /etc/cgconfig.conf [FAILED]
Starting docker: [ OK ]
The service starts okey enough, but images cannot run. A mounting failed error is shown when I try. And the startup-log also gives a warning or two. Regarding the kernelwarning, centos gives the same and has no problems as Epel should resolve this:
WARNING: You are running linux kernel version 2.6.32-431.17.1.el6.x86_64, which might be unstable running docker. Please upgrade your kernel to 3.8.0.
2014/08/07 08:58:29 docker daemon: 1.1.2 d84a070; execdriver: native; graphdriver:
[1233d0af] +job serveapi(unix:///var/run/docker.sock)
[1233d0af] +job initserver()
[1233d0af.initserver()] Creating server
2014/08/07 08:58:29 Listening for HTTP on unix (/var/run/docker.sock)
[1233d0af] +job init_networkdriver()
[1233d0af] -job init_networkdriver() = OK (0)
2014/08/07 08:58:29 WARNING: mountpoint not found
Anyone had any success overcoming this problem or should I throw in the towel and wait for the provider to update to RHEL 7?
Source: (StackOverflow)
OS: RHEL 6.5 x64
Rstudio-server Version 0.98.1062
R version 3.1.1 (2014-07-10)
knitr version 1.6
When attempting to knit an Rmarkdown file I get a failure during the pandoc stage of the compilation:
pandoc: Error producing PDF from TeX source.
! LaTeX Error: File 'ifluatex.sty' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)
Enter file name:
! Emergency stop.
Tried the (9-hour-long) full manual LiveTeX install, just to be sure, and luatex is now installed, but there is still no ifluatex.sty to be found. How do I tell RStudioServer/knitr/pandoc where the installation directory for that file is?
Source: (StackOverflow)
The Redis startup script is supposed to create a pid file at startup, but I've confirmed all the settings I can find, and no pid file is ever created.
I installed redis by:
$ yum install redis
$ chkconfig redis on
$ service redis start
In my config file (/etc/redis.conf) I checked to make sure these were enabled:
daemonize yes
pidfile /var/run/redis/redis.pid
And in the startup script (/etc/init.d/redis) there is:
exec="/usr/sbin/$name"
pidfile="/var/run/redis/redis.pid"
REDIS_CONFIG="/etc/redis.conf"
[ -e /etc/sysconfig/redis ] && . /etc/sysconfig/redis
lockfile=/var/lock/subsys/redis
start() {
[ -f $REDIS_CONFIG ] || exit 6
[ -x $exec ] || exit 5
echo -n $"Starting $name: "
daemon --user ${REDIS_USER-redis} "$exec $REDIS_CONFIG"
retval=$?
echo
[ $retval -eq 0 ] && touch $lockfile
return $retval
}
stop() {
echo -n $"Stopping $name: "
killproc -p $pidfile $name
retval=$?
echo
[ $retval -eq 0 ] && rm -f $lockfile
return $retval
}
These are the settings that came by default with the install. Any idea why no pid file is created? I need to use it for Monit.
(The system is RHEL 6.4 btw)
Source: (StackOverflow)
Problem
I have this bash script:
ACTIVE_DB=$(grep -P "^[ \t]*db.active" config.properties | cut -d= -f2 | tr -s " ")
echo $ACTIVE_DB
if [ "$ACTIVE_DB" = "A" ]
then
ln -sf config-b.properties config.properties
else
ln -sf config-a.properties config.properties
fi
config-a.properties
db.active = A
config-b.properties
db.active = B
When I run the script, a hard copy (=cp
) is performed and config.properties
is often not a symbolic link (nor a physical link for that matter) but a whole new file with the same content as config-a.properties
or config-b.properties
.
$ ls -li
53 -rw-r--r-- 1 ogregoir ogregoir 582 Sep 30 15:41 config-a.properties
54 -rw-r--r-- 1 ogregoir ogregoir 582 Sep 30 15:41 config-b.properties
56 -rw-r--r-- 1 ogregoir ogregoir 582 Oct 2 11:28 config.properties
When I run this in the prompt manually line by line, I have no trouble and a symbolic link is indeed always created and config.properties
points towards config-a.properties
or config-b.properties
.
$ ls -li
53 -rw-r--r-- 1 ogregoir ogregoir 582 Sep 30 15:41 config-a.properties
54 -rw-r--r-- 1 ogregoir ogregoir 582 Sep 30 15:41 config-b.properties
55 lrwxrwxrwx 1 ogregoir ogregoir 20 Oct 2 11:41 config.properties -> config-b.properties
Notes
- No file is open anywhere else (I'm the only active user and the application using the configuration isn't running).
- Sometimes
ln -sf
acts normally, but the usual rule is that it makes a hard copy.
- The script is run from another directory, but
cd
s to the directory where the config*.properties
files are located before performing the actions here.
- The script is way much longer, but this is the shortest example that reproduces the error.
bash
version is 4.1.2 (it's local, so I don't care about shellshock).
ln
version is 8.4.
- Operating System: Red Hat Enterprise Linux Server release 6.5 (Santiago).
- Filesystem used for that folder: ext4.
Question
- Why doesn't my script consistently create a symbolic link but makes a hard copy?
- How to force a symbolic link here?
Source: (StackOverflow)
I am looking to install Tomcat 7 on RHEL6 using an RPM package, but it seems difficult to locate an RPM which installs components to their standard RedHat locations.
Is there a simple community RPM for this?
Source: (StackOverflow)
I'm setting up a new machine. I did inadvertently install the 32-bit java first but I have blown that away and I have installed jdk-8u20-linux-x64.tar.gz (also used the RPM).
This machine has 132G or memory but I suspect I'm starting a 32 bit java app because it always runs out or memory at the same place regardless of -Xmx setting.
I do get a dump from java. It complains that I have 0 limit on core but most ulimit settings are unlimited or large.
The err.log suggests either lack of physical mem. or in 32 bit mode. I can't believe the former, but cannot prove/disprove the latter.
The program manages and array of processes. It chokes after invoking 12 java processes each of which immediately reads 2G of data into memory.
Here's proof of concept app:
import java.util.*;
import java.io.*;
public class PrintProps {
public static void main(String[] args) {
for (String pname : System.getProperties().stringPropertyNames()) {
System.out.println(String.format("Key:%30s PropVal:%s", pname, System.getProperty(pname)));
}
ArrayList<Process> alist = new ArrayList<Process>();
for (int i = 0; i < 50; i++) {
String[] jargs = new String[]{
"java",
"-cp",
"/usr/sup/jars/jpsgcs-pipe-pathing.jar",
"jpsgcs.pipe.SGSPValue",
"-d=/export/home/raja/SGS/CLL_MM_MBL/CLL_MM_DC/chrom9/6211-CLL_only_9.Loci.ped",
"-p=/base/Human610Q/ld/chrom9/TF_H610Q_9.ld",
String.format("-f=/tmp/6211/10K.%d",i)};
ProcessBuilder pb = new ProcessBuilder(jargs);
pb.directory(new File("."));
pb.inheritIO();
System.out.println(String.format("pbuilder %d ", i ));
try {
alist.add(pb.start());
Thread.sleep(1000);
}
catch (Exception e) {
e.printStackTrace();
}
}
}
}
TL/DR alert. Sorry
Here is an hs_err.log
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Cannot create GC thread. Out of system resources.
# Possible reasons:
# The system is out of physical RAM or swap space
# In 32 bit mode, the process size limit was hit
# Possible solutions:
# Reduce memory load on the system
# Increase physical memory or swap space
# Check if swap backing store is full
# Use 64 bit Java on a 64 bit OS
# Decrease Java heap size (-Xmx/-Xms)
# Decrease number of Java threads
# Decrease Java thread stack sizes (-Xss)
# Set larger code cache with -XX:ReservedCodeCacheSize=
# This output file may be truncated or incomplete.
#
# Out of Memory Error (gcTaskThread.cpp:48), pid=7938, tid=139841170798336
#
# JRE version: (8.0_20-b26) (build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.20-b23 mixed mode linux-amd64 compressed oops)
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
--------------- T H R E A D ---------------
Current thread (0x00007f2f48009000): JavaThread "Unknown thread" [_thread_in_vm, id=7940, stack(0x00007f2f4f3f7000,0x00007f2f4f4f8000)]
Stack: [0x00007f2f4f3f7000,0x00007f2f4f4f8000], sp=0x00007f2f4f4f6680, free space=1021k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0xa76cea] VMError::report_and_die()+0x2ca
V [libjvm.so+0x4e52fb] report_vm_out_of_memory(char const*, int, unsigned long, VMErrorType, char const*)+0x8b
V [libjvm.so+0x5afaff] GCTaskThread::GCTaskThread(GCTaskManager*, unsigned int, unsigned int)+0x11f
V [libjvm.so+0x5af068] GCTaskManager::initialize()+0x2c8
V [libjvm.so+0x90697b] ParallelScavengeHeap::initialize()+0x32b
V [libjvm.so+0xa44d0d] Universe::initialize_heap()+0xfd
V [libjvm.so+0xa4512f] universe_init()+0x3f
V [libjvm.so+0x612055] init_globals()+0x65
V [libjvm.so+0xa2acdd] Threads::create_vm(JavaVMInitArgs*, bool*)+0x24d
V [libjvm.so+0x6a9414] JNI_CreateJavaVM+0x74
C [libjli.so+0x736e] JavaMain+0x9e
C [libpthread.so.0+0x79d1]
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
Other Threads:
=>0x00007f2f48009000 (exited) JavaThread "Unknown thread" [_thread_in_vm, id=7940, stack(0x00007f2f4f3f7000,0x00007f2f4f4f8000)]
VM state:not at safepoint (not fully initialized)
VM Mutex/Monitor currently owned by a thread: None
GC Heap History (0 events):
No events
Deoptimization events (0 events):
No events
Internal exceptions (0 events):
No events
Events (0 events):
No events
Dynamic libraries:
00400000-00401000 r-xp 00000000 fd:00 23069232 /usr/java/jdk1.8.0_20/bin/java
00600000-00601000 rw-p 00000000 fd:00 23069232 /usr/java/jdk1.8.0_20/bin/java
01648000-01669000 rw-p 00000000 00:00 0 [heap]
80200000-d4200000 rw-p 00000000 00:00 0
d4200000-580100000 ---p 00000000 00:00 0
580100000-5aa100000 rw-p 00000000 00:00 0
5aa100000-800000000 ---p 00000000 00:00 0
32a4a00000-32a4a20000 r-xp 00000000 fd:00 11010054 /lib64/ld-2.12.so
32a4c1f000-32a4c20000 r--p 0001f000 fd:00 11010054 /lib64/ld-2.12.so
32a4c20000-32a4c21000 rw-p 00020000 fd:00 11010054 /lib64/ld-2.12.so
32a4c21000-32a4c22000 rw-p 00000000 00:00 0
32a4e00000-32a4e83000 r-xp 00000000 fd:00 11010116 /lib64/libm-2.12.so
32a4e83000-32a5082000 ---p 00083000 fd:00 11010116 /lib64/libm-2.12.so
32a5082000-32a5083000 r--p 00082000 fd:00 11010116 /lib64/libm-2.12.so
32a5083000-32a5084000 rw-p 00083000 fd:00 11010116 /lib64/libm-2.12.so
32a5200000-32a538a000 r-xp 00000000 fd:00 11010055 /lib64/libc-2.12.so
32a538a000-32a558a000 ---p 0018a000 fd:00 11010055 /lib64/libc-2.12.so
32a558a000-32a558e000 r--p 0018a000 fd:00 11010055 /lib64/libc-2.12.so
32a558e000-32a558f000 rw-p 0018e000 fd:00 11010055 /lib64/libc-2.12.so
32a558f000-32a5594000 rw-p 00000000 00:00 0
32a5600000-32a5617000 r-xp 00000000 fd:00 11010062 /lib64/libpthread-2.12.so
32a5617000-32a5817000 ---p 00017000 fd:00 11010062 /lib64/libpthread-2.12.so
32a5817000-32a5818000 r--p 00017000 fd:00 11010062 /lib64/libpthread-2.12.so
32a5818000-32a5819000 rw-p 00018000 fd:00 11010062 /lib64/libpthread-2.12.so
32a5819000-32a581d000 rw-p 00000000 00:00 0
32a5a00000-32a5a02000 r-xp 00000000 fd:00 11010076 /lib64/libdl-2.12.so
32a5a02000-32a5c02000 ---p 00002000 fd:00 11010076 /lib64/libdl-2.12.so
32a5c02000-32a5c03000 r--p 00002000 fd:00 11010076 /lib64/libdl-2.12.so
32a5c03000-32a5c04000 rw-p 00003000 fd:00 11010076 /lib64/libdl-2.12.so
32a6200000-32a6207000 r-xp 00000000 fd:00 11010066 /lib64/librt-2.12.so
32a6207000-32a6406000 ---p 00007000 fd:00 11010066 /lib64/librt-2.12.so
32a6406000-32a6407000 r--p 00006000 fd:00 11010066 /lib64/librt-2.12.so
32a6407000-32a6408000 rw-p 00007000 fd:00 11010066 /lib64/librt-2.12.so
32b5600000-32b5616000 r-xp 00000000 fd:00 11010100 /lib64/libnsl-2.12.so
32b5616000-32b5815000 ---p 00016000 fd:00 11010100 /lib64/libnsl-2.12.so
32b5815000-32b5816000 r--p 00015000 fd:00 11010100 /lib64/libnsl-2.12.so
32b5816000-32b5817000 rw-p 00016000 fd:00 11010100 /lib64/libnsl-2.12.so
32b5817000-32b5819000 rw-p 00000000 00:00 0
7f2f32c00000-7f2f32ea0000 rw-p 00000000 00:00 0
7f2f32ea0000-7f2f35400000 ---p 00000000 00:00 0
7f2f35400000-7f2f356a0000 rw-p 00000000 00:00 0
7f2f356a0000-7f2f37bff000 ---p 00000000 00:00 0
7f2f37bff000-7f2f37d50000 rw-p 00000000 00:00 0
7f2f37d50000-7f2f38fff000 ---p 00000000 00:00 0
7f2f38fff000-7f2f39000000 rw-p 00000000 00:00 0
7f2f39000000-7f2f39270000 rwxp 00000000 00:00 0
7f2f39270000-7f2f48000000 ---p 00000000 00:00 0
7f2f48000000-7f2f48039000 rw-p 00000000 00:00 0
7f2f48039000-7f2f4c000000 ---p 00000000 00:00 0
7f2f4e129000-7f2f4e39e000 rw-p 00000000 00:00 0
7f2f4e39e000-7f2f4e39f000 ---p 00000000 00:00 0
7f2f4e39f000-7f2f4e49f000 rw-p 00000000 00:00 0
7f2f4e49f000-7f2f4e4a0000 ---p 00000000 00:00 0
7f2f4e4a0000-7f2f4e5aa000 rw-p 00000000 00:00 0
7f2f4e5aa000-7f2f4e960000 ---p 00000000 00:00 0
7f2f4e960000-7f2f4e97a000 r-xp 00000000 fd:00 23069413 /usr/java/jdk1.8.0_20/jre/lib/amd64/libzip.so
7f2f4e97a000-7f2f4eb7a000 ---p 0001a000 fd:00 23069413 /usr/java/jdk1.8.0_20/jre/lib/amd64/libzip.so
7f2f4eb7a000-7f2f4eb7b000 rw-p 0001a000 fd:00 23069413 /usr/java/jdk1.8.0_20/jre/lib/amd64/libzip.so
7f2f4eb7b000-7f2f4eb85000 r-xp 00000000 fd:00 11010081 /lib64/libnss_nis-2.12.so
7f2f4eb85000-7f2f4ed84000 ---p 0000a000 fd:00 11010081 /lib64/libnss_nis-2.12.so
7f2f4ed84000-7f2f4ed85000 r--p 00009000 fd:00 11010081 /lib64/libnss_nis-2.12.so
7f2f4ed85000-7f2f4ed86000 rw-p 0000a000 fd:00 11010081 /lib64/libnss_nis-2.12.so
7f2f4ed86000-7f2f4ed92000 r-xp 00000000 fd:00 11010077 /lib64/libnss_files-2.12.so
7f2f4ed92000-7f2f4ef92000 ---p 0000c000 fd:00 11010077 /lib64/libnss_files-2.12.so
7f2f4ef92000-7f2f4ef93000 r--p 0000c000 fd:00 11010077 /lib64/libnss_files-2.12.so
7f2f4ef93000-7f2f4ef94000 rw-p 0000d000 fd:00 11010077 /lib64/libnss_files-2.12.so
7f2f4efbc000-7f2f4efe6000 r-xp 00000000 fd:00 23069378 /usr/java/jdk1.8.0_20/jre/lib/amd64/libjava.so
7f2f4efe6000-7f2f4f1e6000 ---p 0002a000 fd:00 23069378 /usr/java/jdk1.8.0_20/jre/lib/amd64/libjava.so
7f2f4f1e6000-7f2f4f1e8000 rw-p 0002a000 fd:00 23069378 /usr/java/jdk1.8.0_20/jre/lib/amd64/libjava.so
7f2f4f1e8000-7f2f4f1f5000 r-xp 00000000 fd:00 23069412 /usr/java/jdk1.8.0_20/jre/lib/amd64/libverify.so
7f2f4f1f5000-7f2f4f3f5000 ---p 0000d000 fd:00 23069412 /usr/java/jdk1.8.0_20/jre/lib/amd64/libverify.so
7f2f4f3f5000-7f2f4f3f7000 rw-p 0000d000 fd:00 23069412 /usr/java/jdk1.8.0_20/jre/lib/amd64/libverify.so
7f2f4f3f7000-7f2f4f3fa000 ---p 00000000 00:00 0
7f2f4f3fa000-7f2f4f4f8000 rw-p 00000000 00:00 0
7f2f4f4f8000-7f2f50162000 r-xp 00000000 fd:00 23069417 /usr/java/jdk1.8.0_20/jre/lib/amd64/server/libjvm.so
7f2f50162000-7f2f50361000 ---p 00c6a000 fd:00 23069417 /usr/java/jdk1.8.0_20/jre/lib/amd64/server/libjvm.so
7f2f50361000-7f2f50438000 rw-p 00c69000 fd:00 23069417 /usr/java/jdk1.8.0_20/jre/lib/amd64/server/libjvm.so
7f2f50438000-7f2f5047d000 rw-p 00000000 00:00 0
7f2f5047d000-7f2f50492000 r-xp 00000000 fd:00 23069680 /usr/java/jdk1.8.0_20/lib/amd64/jli/libjli.so
7f2f50492000-7f2f50691000 ---p 00015000 fd:00 23069680 /usr/java/jdk1.8.0_20/lib/amd64/jli/libjli.so
7f2f50691000-7f2f50692000 rw-p 00014000 fd:00 23069680 /usr/java/jdk1.8.0_20/lib/amd64/jli/libjli.so
7f2f50692000-7f2f50693000 rw-p 00000000 00:00 0
7f2f506ae000-7f2f506b1000 rw-p 00000000 00:00 0
7f2f506b1000-7f2f506b9000 rw-s 00000000 fd:00 12583065 /tmp/hsperfdata_rob/7938
7f2f506b9000-7f2f506ba000 rw-p 00000000 00:00 0
7f2f506ba000-7f2f506bb000 r--p 00000000 00:00 0
7f2f506bb000-7f2f506bc000 rw-p 00000000 00:00 0
7fff31e86000-7fff31e9b000 rw-p 00000000 00:00 0 [stack]
7fff31eb9000-7fff31eba000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
VM Arguments:
java_command: jpsgcs.pipe.SGSPValue -b -d=/export/home/rob/SGS/CLL_MM_MBL/CLL_MM_DC/chrom9/6211-CLL_only_9.Loci.ped -p=/base/Human610Q/ld/chrom9/TF_H610Q_9.ld -n=400 -s=1 --dist=8
java_class_path (initial): /usr/sup/jars/jpsgcs-pipe-pathing.jar
Launcher Type: SUN_STANDARD
Environment Variables:
JAVA_HOME=/usr/java/jdk1.8.0
CLASSPATH=/usr/sup/jars/jpsgcs-pipe-pathing.jar
PATH=.:/usr/sup/apache-maven-3.1.1/bin:/usr/sup/groovy/bin:/home/work/toolshed/gradle-2.0/bin:/usr/sup/eclipse:/usr/sup/pgsql/bin:/export/home/rob/bin:/usr/sup/bin:/usr/java/jdk1.8.0/bin:/usr/bin:/bin:/usr/sbin
USERNAME=rob
SHELL=/bin/bash
DISPLAY=:0.0
Signal Handlers:
SIGSEGV: [libjvm.so+0xa77530], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGBUS: [libjvm.so+0xa77530], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGFPE: [libjvm.so+0x8e1d90], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGPIPE: [libjvm.so+0x8e1d90], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGXFSZ: [libjvm.so+0x8e1d90], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGILL: [libjvm.so+0x8e1d90], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGUSR1: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none
SIGUSR2: [libjvm.so+0x8e35c0], sa_mask[0]=00100000000000000000000000000000, sa_flags=SA_RESTART|SA_SIGINFO
SIGHUP: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none
SIGINT: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none
SIGTERM: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none
SIGQUIT: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none
--------------- S Y S T E M ---------------
OS:Red Hat Enterprise Linux Server release 6.5 (Santiago)
uname:Linux 2.6.32-431.29.2.el6.x86_64 #1 SMP Sun Jul 27 15:55:46 EDT 2014 x86_64
libc:glibc 2.12 NPTL 2.12
rlimit: STACK 10240k, CORE 0k, NPROC 1024, NOFILE 4096, AS infinity
load average:6.35 1.57 0.69
/proc/meminfo:
MemTotal: 132108656 kB
MemFree: 109573200 kB
Buffers: 71664 kB
Cached: 2582360 kB
SwapCached: 0 kB
Active: 19304804 kB
Inactive: 1990228 kB
Active(anon): 18639784 kB
Inactive(anon): 7724 kB
Active(file): 665020 kB
Inactive(file): 1982504 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 8208380 kB
SwapFree: 8208380 kB
Dirty: 138276 kB
Writeback: 0 kB
AnonPages: 18403024 kB
Mapped: 168804 kB
Shmem: 5968 kB
Slab: 276284 kB
SReclaimable: 137288 kB
SUnreclaim: 138996 kB
KernelStack: 14032 kB
PageTables: 77708 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 74262708 kB
Committed_AS: 71622560 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 518808 kB
VmallocChunk: 34289913932 kB
HardwareCorrupted: 0 kB
AnonHugePages: 16584704 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 65536 kB
DirectMap2M: 4079616 kB
DirectMap1G: 130023424 kB
CPU:total 32 (8 cores per cpu, 2 threads per core) family 6 model 62 stepping 4, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, aes, clmul, erms, ht, tsc, tscinvbit
Memory: 4k page, physical 132108656k(109565180k free), swap 8208380k(8208380k free)
vm_info: Java HotSpot(TM) 64-Bit Server VM (25.20-b23) for linux-amd64 JRE (1.8.0_20-b26), built on Jul 30 2014 13:13:52 by "java_re" with gcc 4.3.0 20080428 (Red Hat 4.3.0-8)
time: Tue Oct 14 16:15:03 2014
elapsed time: 0 seconds (0d 0h 0m 0s)
Source: (StackOverflow)
i deploy a symfony 1.4 project on a RHEL 6 Server with PHP 5.3.3.
On a irregular basis I get entries in the php error log complaining that sfProjectConfiguration could not be found and the request fails. The same request then runs smoothly the next time.
There is no memcache or apc installed.
On other machines it works flawless.
Any ideas how to solve or investigate the problem?
Source: (StackOverflow)
This should be easy, but I can't get debugging to work on Tomcat 6 when it is running as a service on RHEL 6.1.
I've added the following line to /etc/tomcat6/tomcat6.conf
JAVA_OPTS="${JAVA_OPTS} -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
When I restart the tomcat 6 service with
service tomcat6 restart
the command line indicates that Tomcat shutdown and started, but it is not running and when I look in the catalina.out log I see
ERROR: Cannot load this JVM TI agent twice, check your java command line for duplicate jdwp options.
Error occurred during initialization of VM
agent library failed to init: jdwp
Attempting to restart the Tomcat6 service fails for both shutdown and startup. I have to reboot RHEL.
I thought that maybe Tomcat6 is running in debug mode by default, but when I comment out the line in tomcat6.conf and reboot using netstat -an doesn't show anything using port 8000 or any port in use by Tomcat.
Can Tomcat 6 be run in debug mode when it is run as a service?
Source: (StackOverflow)