Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7746427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:16:33+00:00 2026-06-01T10:16:33+00:00

I have installed Play framework on my Macbook pro. Play 1.2.4 on the latest

  • 0

I have installed Play framework on my Macbook pro. Play 1.2.4 on the latest 10.7.3.
I have 8 GB memory and i7 Quad core cpu (shows 8 cores).

This is all extremely cool and I am having fun coding in play. But then I just wanted to see what a performance I should be getting in production, so I changed the application config like this :

prod.application.mode=prod

My application class only has 1 method

public static void index() {
    String theman = "You are the man";
    render(theman);
}

and my application template for index is this :

#{extends 'main.html' /}
#{set title:'Home' /}

The man is ${theman}

Thats all.

When I run apache benchmark on this like :

ab -n 1 -c 1 http://localhost:9000/

I get good numbers, but if I got to -n 10 everything just hangs and my computer goes to 100% load on 1 core and just stays there for ever.

I used to get HEAP errors but I set this as an environmental variable :

export _JAVA_OPTIONS="-Xms800m -Xmx1500m"

And now I no longer get any errors, anywhere.

My co-worker tried my app which I tarred and gzipped before sending over, he can easily do -n 10000 -c 1000 an dit just runs and finished in no time at all, almost instantaniously.

So my question is, do I have to set any other system variables or what do I need to do to make my Play app run on my mac ?

Just to clear things, my mac is totally up to date by today, everything is 99% as it came from the factory, probably closer to 100%, except that I do have xcode and such installed.

My java is :

java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-11D50b)
Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode)

uname -sa

Darwin xxx.local 11.3.0 Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41 PST 2012; root:xnu-1699.24.23~1/RELEASE_X86_64 x86_64
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T10:16:34+00:00Added an answer on June 1, 2026 at 10:16 am

    I also had this problem.

    The Apache Benchmark utility that comes with Mac OS X Lion has a strange bug that manifests itself with Play 2.0 but not Play 1.2.x. On my machine, it duplicates each request, sometimes up to a dozen times.

    You can verify this by running a single test and then seeing how many hits are in your log files.

    More recent versions of ab do not have this problem. You can build it yourself or download a binary that someone made.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed jpagen module in my system in play framework. Which successfully generates
I have a very old linux system and installed java and play framework. When
I have installed Play on OSX 10.6 and wanted to test the baseline memory
I have installed XCode 4.2 on my macbook with specifications 2.1 GHz and 4GB
I have installed android sdk from this link http://developer.android.com/sdk/index.html.(installer_r18-windows .... android app is working
I have a Play Framework application that sends emails using SMTP server. Now I
Is this a bug with the default configuration of Play 2.0? I have just
I have just downloaded and installed Orchard CMS and started to play with it.
I'm working on a 1.2 Play! framework application, and I have a problem when
I want to deploy and run my Play! Framework app on EC2. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.