Wednesday, January 30, 2013

Java Webstart: Could not create the Java Virtual Machine

Problem: Java can't allocate enough contiguous memory as specified in the JNLP.

Work around: Lower the max memory setting in the JNLP, or use a 64-bit JVM that allows for more memory availability. If you have total control over the client, close running processes.

Synopsis: Researched the hell out of this, and the problem is ridiculous. On a machine with 16G of memory, and who knows how much virtual memory on top of that, the most I can set my max memory is 900M. Otherwise I intermittently get this error when launching from my JNLP.

The problem is that Java needs contiguous memory for the JVM, and because windows throws DLLs and apps in memory all over the place, the more you have running, the harder it is to get that block of contiguous memory.

Java has no guidelines for 'max memory' settings; it's all dependent on the app, the machine, and the version of java.

Keyword tags: -Xmx, max heap size, jnlp, java, web start, Error: Could not create the Java Virtual Machine

Monday, January 7, 2013

Removing Sprint Proxy Servers on the Galaxy S II Epic Touch 4G

How to remove Sprint proxy servers on the Galaxy S II Epic Touch 4G

  1. Root your phone (QBKing77, opens in a new window)
  2. Download alogcat from marketplace
  3. Open alogcat
  4. Press menu > filter 
  5. Type in MSL
  6. Press the home key then dial ##data#. 
  7. Click Edit
  8. When asked to enter MSL just enter random numbers and press okay. 
  9. Now go back to alogcat it should be there and look something like this:

    I/MSL_Checker( 220): MSL result : ******

    The number (*****) is your MSL. For some reason when you enter the wrong msl it gives you the right one when looking at the logs with alogcat.
  10. Press home key then dial ##data#
  11. Click Edit
  12. Enter MSL and press okay
  13. Click on Others
  14. Click on Multimedia
  15. Change the following settings to:
    1. RTSP Proxy Address changed to
    2. RTSP Proxy Port to 0
    3. HTTPPD Proxy Address to
    4. HTTPPD Proxy Port to 0

For posterity, stock settings are:
    1. RTSP Proxy Address:
    2. RTSP Proxy Port: 554
    3. HTTPPD Proxy Address:
    4. HTTPPD Proxy Port: 8085