Women in Technology

Hear us Roar



Article:
  ColdFusion MX on Mac OS X, Part 3
Subject:   yellow dog linux
Date:   2002-09-04 12:44:12
From:   dicklacara
Response to: yellow dog linux

You may not be successful getting CFMX to run on YDL.


Here's what happens in a normal Linux/Unix install on Intel/Solaris:


1) CFMX is Installed (mostly Java, some Platform-specific C++ code
2) JRun is Installed (mostly Java, some Platform-specific C++ code
3) A Platform Specific JVM/JRE is installed


None of the platform specific code will run on a Mac.


With Mac OS X, we use the installed Mac JVM/JRE instead of the one installed by CFMX


We avoid the C++ modules by limiting what we can do (Verity, Apache interface, etc)


We hack a shell script to reflect the above.


We heed to place copies of some things where Mac's Java can find them.


So, I don't think you can use the JVM/JRE installed by CFMX


I don't know what YDL provides in the way of a JVM/JRE (if any) and whether it meets the requirements of CFMX -- not very likely, because the reason that CFMX installs a JVM/JRE is because it can't count on whats available on any of the supported platforms.


You would have to visit the CF Docs at the Macromedia site to see if you can determine what JVM/JRE is needed, and then see if you could find the appropriate system for YDL on the Mac.


Once that is done, then you would need to hack the CFMX-supplied startup shell script /opt/coldfusionmx/bin/coldfusion to do the equivalent of what we did with the /opt/coldfusionmx/bin/coldfusionosx shell script.


You might need to examine /opt/coldfusionmx/runtime/bin/jvm.config for more hints of what needs to be done.


Then you probably need to copy everything we put in /Library/Java/Extensions to a place where the YDL JVM/JRE can find it.


Other than that I have no Ideas,.


But if you are just looking to benchmark CFMX on Mac OS X vs CFMX on Mac YDL, maybe you can save you some effort.


No formal tests, mind you, but CFMX OS X (with no special tuning options set) running on my 800MHz, G4 TiBook with 512 Meg RAM, 40Gig Hard drive consistently outperformed Faster Intel CPUs with more RAD, etc. running RH 7.x according to a recent thread ON CF-Talk. I don't know what other applications the others were running, but I had Apache, CFMX Default Web Server, BBEdit, Mail, Sherlock Browsers, -- all the stuff I normally run.


I would suspect that OS X Unix is far better tuned for the Mac hardware than YDL.


HTH


Dick

Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • yellow dog linux
    2002-09-05 00:06:22  btickle [View]

    Hmm. Sounds like a lot of hard work just to discover it doesn't run as fast as what I've already got. My OSX installation is running so well in fact I'm tempted to put a full blown version on a server machine and see how it handles it. Now if only I had an Xserve ...
    • yellow dog linux
      2002-09-05 00:53:29  dicklacara [View]

      Unfortunately, you can't interface CFMX on Mac OS X with a full-blown web server such as Apache -- you are limited to the Macromrdia-provided Default web server. This is not suitable for production.

      Also the Developer version of CFMX will only accept requests from clients on localhoes and 1 external IP address -- so you can't use it in production.

      As to performance on Mac OS X, I think you are right to assume that CFMX runs faster on OS X than on YDL.

      Below is some more information that will nhelp reinforce that assumption.

      Dick

      Mac OS X provides a highly-optimized, tightly integrated implementation of Java 2 Standard Edition 1.3, including the client version of the HotSpot virtual machine. As the only high-volume desktop operating system to ship with Java 2, Mac OS X is emerging as the best place to develop and deploy your Java applications.
      Cool, Refreshing Graphics
      Java has never looked this good. All Java applications use Aqua, the amazing liquid look and feel native to Mac OS X. Windows are double-buffered for faster refresh, and support live-resizing and dragging. All drawing is done using Quartz, the Mac OS X PDF-based imaging model, providing amazingly crisp anti-aliased text and better performance for complex drawing operations.
      Blazingly Fast Threading
      In Mac OS X, Java threads are implemented directly on top of native Mach threads, allowing efficient scheduling using true preemptive multitasking. This also allows threaded applications to automatically use multiple CPUs, for blazingly fast performance.