Search Smith

ColdFusion, SQL queries, and, of course, searching

Posts Tagged ‘Jetty’

Some statistics

Posted by David Faber on March 8, 2012

At some point yesterday this blog passed 200 unique visitors and 400 page views. And today we had our 300th visit.

I guess that’s what one would call starting small. 🙂

On a side note, I’ve recently posted on:

  1. How to handle Solr query results in ColdFusion;
  2. Returning the number of milliseconds elapsed since midnight in Oracle (useful for seeding a random number generator);
  3. Paginating query results in Oracle 10g; and
  4. Changing the port on which Jetty listens if you want to use a port other than the default (8983).

Oh, and aside from the United States, this blog is most popular in:

  1. India,
  2. Germany,
  3. Canada,
  4. The United Kingdom, and
  5. Italy.

Of course special mention must also be made to Norway! Most unexpected was the single visit from Lagos, Nigeria. Within the U.S., the greatest number of visits are from:

  1. Philadelphia, PA;
  2. Bozeman, MT;
  3. Washington, DC;
  4. Harrisburg, PA; and
  5. Chicago, IL.

Those five actually combine for over 1/3 of my visits from the U.S. and nearly 1/4 of my total visits.

Posted in ColdFusion, Miscellany, Off-Topic, Oracle, Solr | Tagged: , , , | Leave a Comment »

ColdFusion: Running Solr on Jetty

Posted by David Faber on February 24, 2012

Lucid Imagination has a brief but helpful post on running Solr on Jetty. In ColdFusion 9, Solr runs on Jetty by default (at least under Windows – not sure about Linux or Solaris and I don’t have any information about CF 10). The jetty.xml file can be found under <CF_HOME>/solr/etc/jetty.xml. On a single-instance installation under Windows, then, it would be located under C:\ColdFusion9\solr\etc\jetty.xml.

In order to change the port on which Jetty listens, edit the following (lines 64-78 on the default CF Solr install):

<!-- Use this connector if NIO is not available. -->
<!-- This connector is currently being used for Solr because the
nio.SelectChannelConnector showed poor performance under WindowsXP
from a single client with non-persistent connections (35s vs ~3min)
to complete 10,000 requests)
<Call name="addConnector">
    <New class="">
      <Set name="port"><SystemProperty name="jetty.port" default="8983"/></Set>
      <Set name="maxIdleTime">50000</Set>
      <Set name="lowResourceMaxIdleTime">1500</Set>

Change the value of 8983 to a different port and then restart the ColdFusion Solr service. Solr should now be listening on a different port.

Posted in ColdFusion, Solr | Tagged: , , , | 2 Comments »