Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Maximum heap size for 64bit JVM

843829Jun 20 2008 — edited Jun 24 2008
Hi,

I am trying to set the maximum heap size for a java process in a 64bit JVM . I am not able to set more then 3G

command line config:
java -Xms64m -Xmx3g -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=8000 com.superpages.puboptions.CampaignFeedStarter >> publisher.out 2>&1 &



Hardware / software configs
*$uname -a*
SunOS labsbear 5.9 Generic_122300-19 sun4u sparc SUNW,Sun-Fire-V440
*16GB total physical memory*
*4 processor machine*

*64 bit JVM*
JDK1.6

where is this limitation coming from. How to set the heap size to 6g.

Thanks for your time

Meena

Comments

fac586

Marko Goricki wrote:

is there a way to generate URL for calling APEX page with checksum at the end of the link if URL is generated outside of APEX?

If I call function like this one outside of APEX, checksum is not generated:

  1. createorreplacefunctionf_get_apex_url
  2. returnvarchar2
  3. is
  4. begin
  5. returnapex_util.prepare_url(p_url=>'f?p=100:1:0::::P1_ITEM:1'
  6. ,p_checksum_type=>'PUBLIC_BOOKMARK');
  7. end;
  8. /

I've noticed that by populating global variable (g_curr_flow_security_group_id) in wwv_flow_security function works fine:create or replace function f_get_apex_u

  1. createorreplacefunctionf_get_apex_url
  2. returnvarchar2
  3. is
  4. begin
  5. apex_050100.WWV_FLOW_SECURITY.G_CURR_FLOW_SECURITY_GROUP_ID:=1830663391033130;
  6. returnapex_util.prepare_url(p_url=>'f?p=100:1:0::::P1_ITEM:1'
  7. ,p_checksum_type=>'PUBLIC_BOOKMARK');
  8. end;
  9. /

But, I don't like the fact that this function depends on current APEX version.

There are documented, version-independent API methods for setting the security group ID:

Marko Goricki

Hi fac586,

thanks for quick answer.

I've tried to use set_security_group_id and as far as I know it sets wwv_flow_security.g_security_group_id global variable and not g_curr_flow_security_group_id which apparently is important for generating checksum.

I forgot to note that I've tested this on APEX 5.1.3.00.05.

Br,

Marko

1 - 2
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jul 22 2008
Added on Jun 20 2008
3 comments
1,052 views