1# Configuring PMS and MPD 2 3When starting the program, PMS connects to the MPD server specified in the `$MPD_HOST` and `$MPD_PORT` environment variables. 4 5In order to create a full-text search index for fast searches, 6PMS retrieves the entire song library from MPD whenever the library is updated, 7and on every startup. 8If your song library is big, the `listallinfo` command will overflow MPD's send buffer, 9and the connection is dropped. 10This can be mitigated by increasing MPD's output buffer size, 11and then restarting MPD: 12 13``` 14cat >>/etc/mpd.conf<<<EOF 15max_output_buffer_size "262144" 16EOF 17/etc/init.d/mpd restart # or equivalent 18``` 19