Sponsored Content
Full Discussion: What's my JVM bitness?
Top Forums Shell Programming and Scripting What's my JVM bitness? Post 302535374 by mohtashims on Friday 1st of July 2011 10:29:53 AM
Old 07-01-2011
Excellect !!! i am good for now... Smilie

---------- Post updated 07-01-11 at 09:29 AM ---------- Previous update was 06-30-11 at 12:14 PM ----------

Current Output

Code:
jdkbit=`file $(ps -p8423 -oargs= | awk '{print $1}') | grep 32-bit && echo 32-bit || echo 64-bit`
echo $jdkbit
/apps/wls/bea10/jdk160_05/jre/bin/java: ELF 32-bit MSB executable SPARC Version 1, dynamically linked, not stripped, no debugging information available 32-bit


But I am wanting just "32-bit" or "64-bit" to be assigned to the variable jdkbit in my script. Can you tweak this and help me?

Last edited by radoulov; 07-01-2011 at 01:43 PM.. Reason: Code tags.
 

10 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

heap size for JVM!

Hi all, Thanks 'thehoghunter' and 'hugo' for the comments! I've to increase the size of the heap size for AIX 4.3.3. Now what's the command that I've and also is it something similar to growing the file system in Solaris (growfs) (1 Reply)
Discussion started by: i2admin
1 Replies

2. UNIX for Dummies Questions & Answers

Instaling JVM

Hi Everyone I`ve just started with unix can some please help me execute this command via webmin on avirtual server or how do you execute such .bin file this is the error ./j2sdk-1_3_1_15-linux-i586.bin: not found > ls -l total 69124 -rw------- 1 root wheel 8380 May 15 18:01... (2 Replies)
Discussion started by: J.Carlos MC05
2 Replies

3. UNIX for Advanced & Expert Users

inside the JVM

Hi, does anyone know how to find out what's happening inside a JVM on a unix system? Like what processes are running, which ports, memory usage etc. I'm using AIX 5.2 (1 Reply)
Discussion started by: rein
1 Replies

4. AIX

JVM Setting

What should be the idle JVM setting for the LPAR having 16 GB of memory? Currently the JVM setting is set to -Xms1024M -Xmx10240M (1 Reply)
Discussion started by: aajmani
1 Replies

5. AIX

AIX JVM -32 or 64?

Friends, Can any one tell me what command should be used to check whether the JVM in AIX is 32 bit or 64 bit? Thanks, Govindh (2 Replies)
Discussion started by: Govindh.v
2 Replies

6. Web Development

need help about jvm

hi all i want to install apache and tomcat in unix solaris 10 so i need to konw about heap and jvm memory architecture in jdk version 4 and 5 and 6 i want one help me i searched alot and i can't find something helo me (1 Reply)
Discussion started by: maxim42
1 Replies

7. Solaris

jvm memory settings

When i changed jvm memory settings from 3048 to 3548, appsserver could not start. if no change , it was normal. How do we change .otherwise i had a out of swap space error appeared after 3hrs period when do the monitoring of java application. (1 Reply)
Discussion started by: vijill
1 Replies

8. Programming

Porting JVM to MINX

Hi, As you may see from the title, for some reason I need to make running .class files on Minix possible (a compiler is not necessary). So could somebody point me in any direction, suggest some literature or give some advice? Generally, how would you do it? Also how big is this... (8 Replies)
Discussion started by: John117
8 Replies

9. UNIX for Dummies Questions & Answers

JVM Memory

Hi all, I am starting a JVM in unix and when I use ps command on the pid of process starting JVM the output is something like this :- java -Xms32M -Xmx64M -Xmx128M I need to know what would be the value of Xmx in this case. And how to check that this value be picked while starting JVM... (3 Replies)
Discussion started by: Raj999
3 Replies

10. AIX

JVM Process Name

Hi - In AIX, how do I find the Java Virtual Machine Process Name running on a particular machine? I tried ps -ef | grep java but it does not return a process name. Please help. (4 Replies)
Discussion started by: ocbit
4 Replies
elf_flag(3E)															      elf_flag(3E)

NAME
elf_flagdata, elf_flagehdr, elf_flagelf, elf_flagphdr, elf_flagscn, elf_flagshdr - manipulate flags SYNOPSIS
[flag... ] file... [library] ... DESCRIPTION
These functions manipulate the flags associated with various structures of an ELF file. Given an ELF descriptor elf, a data descriptor data, or a section descriptor scn, the functions may set or clear the associated status bits, returning the updated bits. A null descriptor is allowed, to simplify error handling; all functions return zero for this degenerate case. cmd may have the following values: The functions clear the bits that are asserted in flags. Only the non-zero bits in flags are cleared; zero bits do not change the status of the descriptor. The functions set the bits that are asserted in flags. Only the non-zero bits in flags are set; zero bits do not change the status of the descriptor. Descriptions of the defined flags bits appear below. When the program intends to write an ELF file, this flag asserts the associated information needs to be written to the file. Thus, for example, a program that wished to update the ELF header of an existing file would call with this bit set in flags and cmd equal to A later call to would write the marked header to the file. Normally, the library decides how to arrange an output file. That is, it automatically decides where to place sections, how to align them in the file, etc. If this bit is set for an ELF descriptor, the program assumes responsibility for determining all file positions. This bit is meaningful only for and applies to the entire file associated with the descriptor. When a flag bit is set for an item, it affects all the subitems as well. Thus, for example, if the program sets the bit with the entire logical file is ``dirty.'' EXAMPLES
The following fragment shows how one might mark the ELF header to be written to the output file. SEE ALSO
elf(3E), elf_end(3E), elf_getdata(3E), elf_getehdr(3E), elf_update(3E). elf_flag(3E)
All times are GMT -4. The time now is 03:41 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy