Sponsored Content
Operating Systems Solaris java.lang.OutofMemoryError in Sun Studio 12 Post 302152405 by wintersakura on Wednesday 19th of December 2007 07:21:09 PM
Old 12-19-2007
Hello reborg,

I switched back my Xms and Xmx settings to the default ones (-J-Xms32m -J-Xmx128m). Before, I tried this suggestion at the Sun Studio Tools Forum:
________________________________________________________________________

I would recommend to try 512m first:
/opt/SUNWspro/bin/sunstudio -J-Xms256m -J-Xmx512m

Setting maximum JVM heap size to 1Gb might sometimes cause performance issues.

I'd also like to mention that these settings can easily be changed in
/opt/netbeans5.5/etc/netbeans.conf
so that you don't have to specify them in command line each time.
________________________________________________________________________

The swap -l command often gives this result:
swapfile dev swaplo blocks free
/dev/dsk/c1d0s1 102,1 8 1060280 1060280

The df -k command gives me this:
Filesystem kbytes used avail capacity Mounted on
swap 988464 852 987612 1% /etc/svc/volatile
___________________________________________________________________

Thank you for your help. ^-^
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

java.lang.System when running jar

Hello, I recieve the following error when trying to run the following command in a ksh. The operating system is AIX5.1. /usr/bin/jar -xvf {filename}.zip Can't find class java.lang.System But when I run it on the command line it unzips the file fine. Does anybody know why this... (2 Replies)
Discussion started by: ctcuser
2 Replies

2. UNIX for Dummies Questions & Answers

Receiving error on Unix server-- java.lang.UnsatisfiedLinkError: registerNatives

Hi all, This is my first shell script, so I'm hoping the problem is that I'm just missing something, and not something bigger. I have a Java application that I wrote in WSAD that reads data from an Excel file and inserts values into a DB2 database. I'm able to run it successfully in WSAD. I... (4 Replies)
Discussion started by: loveToBlade
4 Replies

3. Solaris

Sun Studio problem

I am using Sun Studio. But there is problem with it. When my PC is connected to INTERNET then there is no problem in starting Sun Studio. But When my PC is not connected to INTERNET then there is problem in starting Sun Studio. With out INTERNET i run sunstudio but after waiting long time nothing... (0 Replies)
Discussion started by: mansoorulhaq
0 Replies

4. Solaris

Sun Studio 10 + Boost 1.36

Is it possible to build Boost 1.35 using Sun Studio 10? I can build Boost 1.35 using Sun Studio 11 successful. However, i'm unable to build it using Sun Studio 10 using the exact method. I really apprecaite if any expert can help on this. Thanks, (2 Replies)
Discussion started by: shingpui
2 Replies

5. Solaris

Sun Studio 11 in OpenSolaris

Install Sun Studio 11 on OpenSolaris 2009.06 When run IDE - system return error: touch: cannot change times on /export/home/iktomy/.sunstudio/11-SunOS-i386/system/dontshowisw: Permission denied /opt/SUNWspro/prod/scripts/jdk_chooser: line 131: cat: command not found... (0 Replies)
Discussion started by: Iktomy
0 Replies

6. Solaris

Sun One Studio 12

Hi, Do you know where I can get a copy of Sun One Studio 12? I've looked on the Oracle Website but cannot find it to download!:confused: Thanks, Sparcman (1 Reply)
Discussion started by: sparcman
1 Replies

7. AIX

VIOS - Error 500: java.lang.OutOfMemoryError

Hey buddies, I'd love to seek and destroy the cause of this error > . < I get this in my browser (Error 500: java.lang.OutOfMemoryError) when I unsuccessfully try to access my Vios - IVM adress :( To recover access to IVM adress I have to enter "oem_setup_env" mode and "kill -9 java's... (3 Replies)
Discussion started by: Xscaio
3 Replies
swap(1M)                                                  System Administration Commands                                                  swap(1M)

NAME
swap - swap administrative interface SYNOPSIS
/usr/sbin/swap -a swapname [swaplow] [swaplen] /usr/sbin/swap -d swapname [swaplow] /usr/sbin/swap -l /usr/sbin/swap -s DESCRIPTION
The swap utility provides a method of adding, deleting, and monitoring the system swap areas used by the memory manager. OPTIONS
The following options are supported: -a swapname Add the specified swap area. This option can only be used by the super-user. swapname is the name of the swap file: for example, /dev/dsk/c0t0d0s1 or a regular file. swaplow is the offset in 512-byte blocks into the file where the swap area should begin. swaplen is the desired length of the swap area in 512-byte blocks. The value of swaplen can not be less than 16. For example, if n blocks are specified, then (n-1) blocks would be the actual swap length. swaplen must be at least one page in length. The size of a page of memory can be determined by using the pagesize command. See pagesize(1). Since the first page of a swap file is automatically skipped, and a swap file needs to be at least one page in length, the minimum size should be a multiple of 2 pagesize bytes. The size of a page of memory is machine dependent. swaplow + swaplen must be less than or equal to the size of the swap file. If swaplen is not specified, an area will be added starting at swaplow and extending to the end of the designated file. If neither swaplow nor swaplen are specified, the whole file will be used except for the first page. Swap areas are normally added automatically during system startup by the /sbin/swapadd script. This script adds all swap areas which have been specified in the /etc/vfstab file; for the syntax of these specifications, see vfstab(4). To use an NFS or local file-system swapname, you should first create a file using mkfile(1M). A local file-system swap file can now be added to the running system by just running the swap -a command. For NFS mounted swap files, the server needs to export the file. Do this by performing the following steps: 1. Add the following line to /etc/dfs/dfstab: share -F nfs -o rw=clientname,root=clientname path-to-swap-file 2. Run shareall(1M). 3. Have the client add the following line to /etc/vfstab: server:path-to-swap-file - local-path-to-swap-filenfs --- local-path-to-swap-file -- swap --- 4. Have the client run mount: # mount local-path-to-swap-file 5. The client can then run swap -a to add the swap space: # swap -a local-path-to-swap-file -d swapname Delete the specified swap area. This option can only be used by the super-user. swapname is the name of the swap file: for example, /dev/dsk/c0t0d0s1 or a regular file. swaplow is the offset in 512-byte blocks into the swap area to be deleted. If swaplow is not specified, the area will be deleted starting at the second page. When the command completes, swap blocks can no longer be allocated from this area and all swap blocks previously in use in this swap area have been moved to other swap areas. -l List the status of all the swap areas. The output has five columns: path The path name for the swap area. dev The major/minor device number in decimal if it is a block special device; zeroes otherwise. swaplo The swaplow value for the area in 512-byte blocks. blocks The swaplen value for the area in 512-byte blocks. free The number of 512-byte blocks in this area that are not currently allocated. The list does not include swap space in the form of physical memory because this space is not associated with a particular swap area. If swap -l is run while swapname is in the process of being deleted (by swap -d), the string INDEL will appear in a sixth column of the swap stats. -s Print summary information about total swap space usage and availability: allocated The total amount of swap space in bytes currently allocated for use as backing store. reserved The total amount of swap space in bytes not currently allocated, but claimed by memory mappings for possi- ble future use. used The total amount of swap space in bytes that is either allocated or reserved. available The total swap space in bytes that is currently available for future reservation and allocation. These numbers include swap space from all configured swap areas as listed by the -l option, as well swap space in the form of physical memory. USAGE
On the 32-bit operating system, only the first 2 Gbytes -1 are used for swap devices greater than or equal to 2 Gbytes in size. On the 64-bit operating system, a block device larger than 2 Gbytes can be fully utilized for swap up to 2**63 -1 bytes. ENVIRONMENT VARIABLES
See environ(5) for descriptions of the following environment variables that affect the execution of swap: LC_CTYPE and LC_MESSAGE. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
pagesize(1), mkfile(1M), shareall(1M), getpagesize(3C), vfstab(4), attributes(5), largefile(5) WARNINGS
No check is done to determine if a swap area being added overlaps with an existing file system. SunOS 5.10 20 Jan 2004 swap(1M)
All times are GMT -4. The time now is 09:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy